diff --git a/renderdoc/driver/gl/gl_pixelhistory.cpp b/renderdoc/driver/gl/gl_pixelhistory.cpp index 422eae4bc..398deaee6 100644 --- a/renderdoc/driver/gl/gl_pixelhistory.cpp +++ b/renderdoc/driver/gl/gl_pixelhistory.cpp @@ -153,6 +153,10 @@ GLuint RefreshUniforms(WrappedOpenGL *driver, GLRenderState &rs, GLuint dstProgr .name; } + // if there's no program bound, nothing to do + if(srcProgram == 0) + return dstProgram; + PerStageReflections stages; driver->FillReflectionArray(ProgramRes(ctx, srcProgram), stages);