Check type hint for auto fit range button in texture viewer.

This commit is contained in:
Steve Karolewics
2019-07-09 21:03:52 -07:00
committed by Baldur Karlsson
parent b56b597cbf
commit 7ff5841885
+4
View File
@@ -3277,6 +3277,10 @@ void TextureViewer::AutoFitRange()
{
fmt.compType = CompType::Float;
}
if(fmt.compType == CompType::Typeless && m_TexDisplay.typeHint == CompType::UInt)
fmt.compType = CompType::UInt;
if(fmt.compType == CompType::Typeless && m_TexDisplay.typeHint == CompType::SInt)
fmt.compType = CompType::SInt;
for(int i = 0; i < 4; i++)
{