Graphics/BakedFrameGraph: Fix command buffer destruction when skipping a framepass

This commit is contained in:
Jérôme Leclercq 2021-06-06 16:00:03 +02:00
parent b85cb174ce
commit 26f5d01c86
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ namespace Nz
break;
case FramePassExecution::Skip:
renderFrame.PushForRelease(std::move(passData.commandBuffer));
passData.commandBuffer.reset();
continue; //< Skip the pass