mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't delete program before we try to print the link errors
This commit is contained in:
@@ -249,6 +249,9 @@ GLuint MakeSeparableShaderProgram(WrappedOpenGL &drv, GLenum type, vector<string
|
||||
|
||||
if(attempt == 1)
|
||||
{
|
||||
drv.glDeleteProgram(sepProg);
|
||||
sepProg = 0;
|
||||
|
||||
RDCLOG("Attempting to pre-process shader with glslang to allow patching");
|
||||
|
||||
glslang::TShader sh(EShLanguage(ShaderIdx(type)));
|
||||
@@ -492,9 +495,6 @@ GLuint MakeSeparableShaderProgram(WrappedOpenGL &drv, GLenum type, vector<string
|
||||
if(status == 1)
|
||||
break;
|
||||
|
||||
drv.glDeleteProgram(sepProg);
|
||||
sepProg = 0;
|
||||
|
||||
RDCWARN("Couldn't patch separability into shader, attempt #%d", attempt + 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user