mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Show if GL_FRAMEBUFFER_SRGB is 0 for an SRGB FBO attachment
This commit is contained in:
@@ -221,7 +221,7 @@ namespace renderdoc
|
||||
{
|
||||
public ResourceId FBO;
|
||||
|
||||
bool FramebufferSRGB;
|
||||
public bool FramebufferSRGB;
|
||||
|
||||
[CustomMarshalAs(CustomUnmanagedType.TemplatedArray)]
|
||||
public ResourceId[] Color;
|
||||
|
||||
@@ -960,6 +960,9 @@ namespace renderdocui.Windows.PipelineState
|
||||
typename = "TexCube";
|
||||
|
||||
tag = texs[t];
|
||||
|
||||
if (texs[t].format.srgbCorrected && !state.m_FB.FramebufferSRGB)
|
||||
name += " (GL_FRAMEBUFFER_SRGB = 0)";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user