If a texture is typeless then account for type hint when pixel picking

This commit is contained in:
baldurk
2019-01-09 16:27:15 +00:00
parent 277ba1399c
commit 150e6527ad
+6
View File
@@ -818,6 +818,12 @@ void TextureViewer::UI_UpdateStatusText()
bool uintTex = (tex.format.compType == CompType::UInt);
bool sintTex = (tex.format.compType == CompType::SInt);
if(tex.format.compType == CompType::Typeless && m_TexDisplay.typeHint == CompType::UInt)
uintTex = true;
if(tex.format.compType == CompType::Typeless && m_TexDisplay.typeHint == CompType::SInt)
sintTex = true;
if(m_TexDisplay.overlay == DebugOverlay::QuadOverdrawPass ||
m_TexDisplay.overlay == DebugOverlay::QuadOverdrawDraw ||
m_TexDisplay.overlay == DebugOverlay::TriangleSizeDraw ||