浏览代码

Added null check to handle some weird case when running tests.

/main
uygar 7 年前
当前提交
e85069ef
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      ScriptableRenderPipeline/Core/CoreRP/Shadow/Shadow.cs

2
ScriptableRenderPipeline/Core/CoreRP/Shadow/Shadow.cs


cmd.SetViewport( m_EntryCache[i].current.viewport );
cbName = "Shadowmap.ClearRect";
cmd.BeginSample( cbName );
if( m_ClearMat == null )
m_ClearMat = new Material( Shader.Find( "Hidden/ScriptableRenderPipeline/ShadowClear" ) );
CoreUtils.DrawFullScreen( cmd, m_ClearMat, null, 0 );
cmd.EndSample( cbName );
cmd.SetViewProjectionMatrices( m_EntryCache[i].current.view, m_EntryCache[i].current.proj );

正在加载...
取消
保存