浏览代码

[fptl] fix null reference exception

/main
vlad-andreev 8 年前
当前提交
6a14e392
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      Assets/ScriptableRenderLoop/fptl/FptlLighting.cs

4
Assets/ScriptableRenderLoop/fptl/FptlLighting.cs


m_blitMaterial = new Material(m_FinalPassShader);
m_blitMaterial.hideFlags = HideFlags.HideAndDontSave;
lightList = null;
}
void OnDisable()

void ResizeIfNecessary(int curWidth, int curHeight)
{
if(curWidth!=m_WidthOnRecord || curHeight!=m_HeightOnRecord)
if(curWidth!=m_WidthOnRecord || curHeight!=m_HeightOnRecord || lightList == null)
{
if(m_WidthOnRecord>0 && m_HeightOnRecord>0)
ReleaseResolutionDependentBuffers();

正在加载...
取消
保存