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