mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 06:39:14 +01:00
ProgramShaderCache: Abort shader compilation if geometry shader failed to compile.
This commit is contained in:
parent
6642af2404
commit
4d075c2efb
@ -252,7 +252,7 @@ bool ProgramShaderCache::CompileShader(SHADER& shader, const char* vcode, const
|
||||
if (gcode)
|
||||
gsid = CompileSingleShader(GL_GEOMETRY_SHADER, gcode);
|
||||
|
||||
if (!vsid || !psid)
|
||||
if (!vsid || !psid || (gcode && !gsid))
|
||||
{
|
||||
glDeleteShader(vsid);
|
||||
glDeleteShader(psid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user