浏览代码

After cleanup set texture atlas and decal mesh to null so that they get recreated.

/main
Paul Melamed 7 年前
当前提交
ace24f84
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 5
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Decal/DecalSystem.cs

5
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Decal/DecalSystem.cs


pair.Value.EndCull();
}
}
// need a better way than passing light loop here
public void RenderIntoDBuffer(CommandBuffer cmd)
{
if (m_DecalMesh == null)

if (m_DecalAtlas != null)
m_DecalAtlas.Release();
CoreUtils.Destroy(m_DecalMesh);
m_DecalAtlas = null; // set to null so that it gets recreated correctly
m_DecalMesh = null;
}
}
}
正在加载...
取消
保存