Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 27d139b

Browse files
committed
Fixed MSVO in forward on platforms without resolved depth support
1 parent be5949c commit 27d139b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

PostProcessing/Runtime/Effects/MultiScaleVO.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,7 @@ void PushDownsampleCommands(PostProcessRenderContext context, CommandBuffer cmd)
339339
if (useDepthCopy)
340340
{
341341
m_DepthCopy.PushAllocationCommand(cmd);
342-
cmd.SetRenderTarget(m_DepthCopy.id);
343-
cmd.DrawProcedural(Matrix4x4.identity, m_PropertySheet.material, (int)Pass.DepthCopy, MeshTopology.Triangles, 3);
342+
cmd.BlitFullscreenTriangle(BuiltinRenderTextureType.None, m_DepthCopy.id, m_PropertySheet, (int)Pass.DepthCopy);
344343
}
345344

346345
// Temporary buffer allocations.

0 commit comments

Comments
 (0)