From 88c8272616b358e007f52835331a1f34a9cdbe19 Mon Sep 17 00:00:00 2001 From: FrancescoC-Unity Date: Tue, 12 Oct 2021 15:42:41 +0200 Subject: [PATCH] release cmd --- .../Editor/Lighting/ProbeVolume/ProbePlacement.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbePlacement.cs b/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbePlacement.cs index 9f378581a16..d3506c75e51 100644 --- a/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbePlacement.cs +++ b/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbePlacement.cs @@ -416,6 +416,8 @@ static void SubdivideSubCell(ProbeReferenceVolume.Volume cellVolume, ProbeSubdiv cmd.WaitAllAsyncReadbackRequests(); Graphics.ExecuteCommandBuffer(cmd); + cmd.Clear(); + CommandBufferPool.Release(cmd); } static bool RastersizeGeometry(CommandBuffer cmd, ProbeReferenceVolume.Volume cellVolume, GPUSubdivisionContext ctx,