mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-25 07:56:33 +00:00
Fixed null exception if Reset01 is clicked with no active texture.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user