mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 08:26:50 +00:00
Render custom shaders at the selected mip level. Refs #302
This commit is contained in:
@@ -2116,9 +2116,12 @@ namespace renderdocui.Windows
|
||||
else
|
||||
gammaDisplay.Enabled = false;
|
||||
|
||||
m_TexDisplay.linearDisplayAsGamma = gammaDisplay.Checked;
|
||||
m_TexDisplay.linearDisplayAsGamma = !gammaDisplay.Enabled || gammaDisplay.Checked;
|
||||
}
|
||||
|
||||
if (tex != null && tex.format.srgbCorrected)
|
||||
m_TexDisplay.linearDisplayAsGamma = false;
|
||||
|
||||
bool dsv = false;
|
||||
if(tex != null)
|
||||
dsv = ((tex.creationFlags & TextureCreationFlags.DSV) != 0) || (tex.format.compType == FormatComponentType.Depth);
|
||||
|
||||
Reference in New Issue
Block a user