From 724bce2d2035c114bb5bea05f2fd29385c1c9f52 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 23 Oct 2025 14:21:44 +0100 Subject: [PATCH] Don't ignore based on bound framebuffer for clear or direct writes --- renderdoc/driver/gl/gl_pixelhistory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renderdoc/driver/gl/gl_pixelhistory.cpp b/renderdoc/driver/gl/gl_pixelhistory.cpp index aff4530f0..7a91605c3 100644 --- a/renderdoc/driver/gl/gl_pixelhistory.cpp +++ b/renderdoc/driver/gl/gl_pixelhistory.cpp @@ -846,7 +846,8 @@ rdcarray QueryModifyingEvents(WrappedOpenGL *driver, GLPixelHistoryR eGL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, &objectType); // Ignore the event if the framebuffer is attached to a different mip level than the one we're // interested in - if(objectType == eGL_TEXTURE) + if(objectType == eGL_TEXTURE && events[i].usage != ResourceUsage::Clear && + !isDirectWrite(events[i].usage)) { int attachedMipLevel; driver->glGetFramebufferAttachmentParameteriv(