mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 01:16:31 +00:00
Don't try to copy PS uniforms if there is no program bound
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user