From 150e6527ad3aec1a24047aea02728929296a5790 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 9 Jan 2019 11:04:47 +0000 Subject: [PATCH] If a texture is typeless then account for type hint when pixel picking --- qrenderdoc/Windows/TextureViewer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qrenderdoc/Windows/TextureViewer.cpp b/qrenderdoc/Windows/TextureViewer.cpp index 6522ef547..fe36a1fe9 100644 --- a/qrenderdoc/Windows/TextureViewer.cpp +++ b/qrenderdoc/Windows/TextureViewer.cpp @@ -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 ||