From 4de445d2f5d2d10ca8a9c2f7dae91da933d2ed32 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 24 Aug 2026 17:35:34 +0100 Subject: [PATCH] Don't try to copy PS uniforms if there is no program bound --- renderdoc/driver/gl/gl_pixelhistory.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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);