浏览代码

Prevent trying to destroy base black texture from test result window

/main
Remy 6 年前
当前提交
ed433ef9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Tests/Scripts/Editor/GraphicTests/Framework/TestResultWindow.cs

2
Tests/Scripts/Editor/GraphicTests/Framework/TestResultWindow.cs


private void OnDisable()
{
DestroyImmediate(templateImage);
DestroyImmediate(resultImage);
if(resultImage != null && resultImage != Texture2D.blackTexture) DestroyImmediate(resultImage);
DestroyImmediate(diffMaterial);
}

正在加载...
取消
保存