浏览代码

TextureCache shouldn't derive from UnityEngine.Object

1. No need. 2. When it does, and it's created with new(), ==null checks
don't work as expected and the objects newer get cleaned up, leaking
memory.
/main
Robert Cupisz 8 年前
当前提交
9fc44597
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Assets/ScriptableRenderLoop/common/TextureCache.cs

2
Assets/ScriptableRenderLoop/common/TextureCache.cs


}
public abstract class TextureCache : Object
public abstract class TextureCache
{
protected int m_NumMipLevels;

正在加载...
取消
保存