1
0
Fork 0

Merge pull request #5608 from gal20/fix-flatpak-crash

Fix flatpak crash when hardware shader is enabled
This commit is contained in:
Marshall Mohror 2020-11-15 11:23:08 -06:00 committed by GitHub
commit 23b67849d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -267,6 +267,7 @@ public:
auto [iter, new_shader] = shader_cache.emplace(program, OGLShaderStage{separable});
OGLShaderStage& cached_shader = iter->second;
if (new_shader) {
result.emplace();
result->code = program;
cached_shader.Create(program.c_str(), ShaderType);
}