Skip to content

Commit

Permalink
Fixed the bug that occurred when exiting the profiling scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
CyTakayukiKiyohara committed Sep 11, 2023
1 parent bbcc34e commit 70ebf5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Assets/Nova/Runtime/Core/Scripts/DistortedUvBufferPass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ public override void Execute(ScriptableRenderContext context, ref RenderingData
{
context.ExecuteCommandBuffer(cmd);
cmd.Clear();
CommandBufferPool.Release(cmd);

var drawingSettings =
CreateDrawingSettings(_shaderTagId, ref renderingData, SortingCriteria.CommonTransparent);
context.DrawRenderers(renderingData.cullResults, ref drawingSettings, ref _filteringSettings);
}
context.ExecuteCommandBuffer(cmd);
CommandBufferPool.Release(cmd);
}
}
}

0 comments on commit 70ebf5c

Please sign in to comment.