浏览代码

Fixed crash in editor caused by previoous CL

/Add-support-for-light-specular-color-tint
Julien Ignace 7 年前
当前提交
e6fca8d2
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 8
      ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs

8
ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs


RenderDebug(hdCamera, cmd);
// Make sure to unbind every render texture here because in the next iteration of the loop we might have to reallocate render texture (if the camera size is different)
cmd.SetRenderTarget(new RenderTargetIdentifier(-1), new RenderTargetIdentifier(-1));
// We still need to bind correctly default camera target with our depth buffer in case we are currently rendering scene view. It should be the last camera here
// Make sure to unbind every render texture here because in the next iteration of the loop we might have to reallocate render texture (if the camera size is different)
cmd.SetRenderTarget(new RenderTargetIdentifier(-1), new RenderTargetIdentifier(-1));
renderContext.ExecuteCommandBuffer(cmd);
CommandBufferPool.Release(cmd);

正在加载...
取消
保存