mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-23 16:03:07 +00:00
Merge pull request #5608 from gal20/fix-flatpak-crash
Fix flatpak crash when hardware shader is enabled
This commit is contained in:
commit
23b67849d5
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue