浏览代码

Fix issues with domain reload

/main
Evgenii Golubev 7 年前
当前提交
7ce9f50d
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 10
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Volumetrics/VolumetricLighting.cs

10
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Volumetrics/VolumetricLighting.cs


{
for (int i = 0, n = this.lightingRTEX.Length; i < n; i++)
{
this.lightingRTEX[i].Release();
if (this.lightingRTEX[i] != null)
{
this.lightingRTEX[i].Release();
}
}
}

if (preset == VolumetricLightingPreset.Off) return;
m_VolumetricLightingCS = asset.renderPipelineResources.volumetricLightingCS;
m_VBuffers = new List<VBuffer>(1);
m_VBuffers = new List<VBuffer>(0);
}
public void Cleanup()

for (int i = 0; i < n; i++)
{
if (viewID == m_VBuffers[i].viewID)
// Check whether domain reload killed it...
if (viewID == m_VBuffers[i].viewID && m_VBuffers[i].lightingRTEX != null && m_VBuffers[i].lightingRTEX[0] != null)
{
vBuffer = m_VBuffers[i];
}

正在加载...
取消
保存