Skip to content
Permalink
Browse files

- release any references to command buffer when flushed

  • Loading branch information...
dpjudas committed Aug 25, 2019
1 parent cc1f18a commit 7d73616fda41c5cc4219cb50e3a81391b27c6e54
@@ -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();
@@ -251,6 +251,8 @@ void VulkanFrameBuffer::FlushCommands(VulkanCommandBuffer **commands, size_t cou

void VulkanFrameBuffer::FlushCommands(bool finish, bool lastsubmit)
{
mRenderState->EndRenderPass();

if (mDrawCommands || mTransferCommands)
{
VulkanCommandBuffer *commands[2];

0 comments on commit 7d73616

Please sign in to comment.
You can’t perform that action at this time.