mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Don't set invalid zoom level when no previous texture size is set
This commit is contained in:
@@ -1121,7 +1121,7 @@ void TextureViewer::UI_OnTextureSelectionChanged(bool newdraw)
|
||||
float curArea = area(curSize);
|
||||
float prevArea = area(m_PrevSize);
|
||||
|
||||
if(prevArea > 0.0f)
|
||||
if(prevArea > 0.0f && m_PrevSize.width() > 0.0f)
|
||||
{
|
||||
float prevX = m_TexDisplay.xOffset;
|
||||
float prevY = m_TexDisplay.yOffset;
|
||||
|
||||
Reference in New Issue
Block a user