diff --git a/qrenderdoc/Windows/PixelHistoryView.cpp b/qrenderdoc/Windows/PixelHistoryView.cpp index 5045bc4e3..78e04d9bd 100644 --- a/qrenderdoc/Windows/PixelHistoryView.cpp +++ b/qrenderdoc/Windows/PixelHistoryView.cpp @@ -58,8 +58,8 @@ public: m_IsSint = (compType == CompType::SInt); m_IsFloat = (!m_IsUint && !m_IsSint); - if(compType == CompType::Depth) - m_IsDepth = true; + m_IsDepth = + (m_Tex->creationFlags & TextureCategory::DepthTarget) || (compType == CompType::Depth); switch(m_Tex->format.type) {