- release any references to command buffer when flushed

This commit is contained in:
Magnus Norddahl 2019-08-25 12:12:29 +02:00
commit 7d73616fda
2 changed files with 2 additions and 2 deletions

View file

@ -162,7 +162,6 @@ void VkRenderState::Apply(int dt)
mApplyCount++;
if (mApplyCount >= vk_submit_size)
{
EndRenderPass();
GetVulkanFrameBuffer()->FlushCommands(false);
mApplyCount = 0;
}
@ -437,7 +436,6 @@ void VkRenderState::ApplyDynamicSet()
void VkRenderState::WaitForStreamBuffers()
{
EndRenderPass();
GetVulkanFrameBuffer()->WaitForCommands(false);
mApplyCount = 0;
mStreamBufferWriter.Reset();