mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 16:50:44 +00:00
Check type hint for auto fit range button in texture viewer.
This commit is contained in:
committed by
Baldur Karlsson
parent
b56b597cbf
commit
7ff5841885
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user