mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Fix crash if tex doesn't have any settings yet
This commit is contained in:
@@ -1521,7 +1521,7 @@ namespace renderdocui.Windows
|
||||
m_TexDisplay.typeHint = m_Following.GetTypeHint(m_Core);
|
||||
|
||||
// if there is no such type or it isn't being followed, use the last seen interpretation
|
||||
if (m_TexDisplay.typeHint == FormatComponentType.None)
|
||||
if (m_TexDisplay.typeHint == FormatComponentType.None && m_TextureSettings.ContainsKey(m_TexDisplay.texid))
|
||||
m_TexDisplay.typeHint = m_TextureSettings[m_TexDisplay.texid].typeHint;
|
||||
|
||||
m_CurPixelValue = null;
|
||||
|
||||
Reference in New Issue
Block a user