浏览代码

Fix issue with SetViewPortAndClear not call correctly

This was causing issue when resizing the windows in the editor
/main
sebastienlagarde 7 年前
当前提交
6e2b0b74
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 3
      com.unity.render-pipelines.high-definition/HDRP/HDUtils.cs

3
com.unity.render-pipelines.high-definition/HDRP/HDUtils.cs


public static void SetRenderTarget(CommandBuffer cmd, HDCamera camera, RenderTargetIdentifier[] colorBuffers, RTHandleSystem.RTHandle depthBuffer, ClearFlag clearFlag, Color clearColor)
{
cmd.SetRenderTarget(colorBuffers, depthBuffer);
SetViewport(cmd, camera, depthBuffer);
CoreUtils.ClearRenderTarget(cmd, clearFlag, clearColor);
SetViewportAndClear(cmd, camera, depthBuffer, clearFlag, clearColor);
}
// Scaling viewport is done for auto-scaling render targets.

正在加载...
取消
保存