Fixed null exception if Reset01 is clicked with no active texture.

This commit is contained in:
EecheE authored and baldurk committed 2016-06-26 12:26:00 +02:00
1 parent c52e763e8c
commit e160457abb
1 file changed
+1 -1
+1 -1
View File
@@ -1451,7 +1451,7 @@ namespace renderdocui.Windows
private void UI_SetHistogramRange(FetchTexture tex)
{
if (tex.format.compType == FormatComponentType.SNorm)
if (tex != null && tex.format.compType == FormatComponentType.SNorm)
rangeHistogram.SetRange(-1.0f, 1.0f);
else
rangeHistogram.SetRange(0.0f, 1.0f);