Don't try to copy PS uniforms if there is no program bound

This commit is contained in:
baldurk
2026-08-24 17:46:21 +01:00
parent fc50157566
commit 4de445d2f5
+4
View File
@@ -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);