浏览代码

Merge remote-tracking branch 'refs/remotes/origin/master' into Unity-2017.3

/main
sebastienlagarde 7 年前
当前提交
9f524135
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      ScriptableRenderPipeline/Core/TextureCache.cs

4
ScriptableRenderPipeline/Core/TextureCache.cs


{
sliceIndex = m_LocatorInSliceArray[texId];
bFoundAvailOrExistingSlice = true;
//assert(m_SliceArray[sliceIndex].TexID==TexID);
Debug.Assert(m_SliceArray[sliceIndex].texId == texId);
}
// If no existing copy found in the array

// wrap up
//assert(bFoundAvailOrExistingSlice);
Debug.Assert(bFoundAvailOrExistingSlice); // if this fails either increase the size of the texture cache or reduce number of unique cached textures in use.
if (bFoundAvailOrExistingSlice)
{
m_SliceArray[sliceIndex].countLRU = 0; // mark slice as in use this frame

正在加载...
取消
保存