diff --git a/renderdoc/driver/gl/gl_debug.cpp b/renderdoc/driver/gl/gl_debug.cpp index 7a6c085a8..ac51239a0 100644 --- a/renderdoc/driver/gl/gl_debug.cpp +++ b/renderdoc/driver/gl/gl_debug.cpp @@ -766,6 +766,13 @@ bool GLReplay::RenderTexture(TextureDisplay cfg) ubo->TextureResolutionPS.y = float(tex_y); ubo->TextureResolutionPS.z = float(tex_z); + float mipScale = float(1<Scale *= mipScale; + ubo->TextureResolutionPS.x /= mipScale; + ubo->TextureResolutionPS.y /= mipScale; + ubo->TextureResolutionPS.z /= mipScale; + ubo->OutputRes.x = DebugData.outWidth; ubo->OutputRes.y = DebugData.outHeight;