Don't autofit if no texture is viewed (e.g. if a buffer is up)

* This fixes a bug from a crash upload
This commit is contained in:
baldurk
2015-09-11 11:52:02 +02:00
parent a35d18467d
commit 1ca3685668
+4
View File
@@ -3073,6 +3073,10 @@ namespace renderdocui.Windows
private void AutoFitRange()
{
// no log loaded or buffer/empty texture currently being viewed - don't autofit
if (!m_Core.LogLoaded || CurrentTexture == null)
return;
m_Core.Renderer.BeginInvoke((ReplayRenderer r) =>
{
PixelValue min, max;