浏览代码

Added null checks.

/Branch_Batching2
Keijiro Takahashi 8 年前
当前提交
bbf78b3f
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 4
      Assets/ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs
  2. 2
      Assets/ScriptableRenderPipeline/HDRenderPipeline/ScreenSpace/AmbientOcclusion/AmbientOcclusion.cs

4
Assets/ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs


Utilities.Destroy(m_DebugDisplayLatlong);
m_SkyManager.Cleanup();
m_SsaoEffect.Cleanup();
if (m_SsaoEffect != null)
m_SsaoEffect.Cleanup();
#if UNITY_EDITOR
SupportedRenderingFeatures.active = SupportedRenderingFeatures.Default;

2
Assets/ScriptableRenderPipeline/HDRenderPipeline/ScreenSpace/AmbientOcclusion/AmbientOcclusion.cs


public void Cleanup()
{
m_Sheet.Release();
if (m_Sheet != null) m_Sheet.Release();
}
}
}
正在加载...
取消
保存