mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-18 15:11:46 +00:00
- release any references to command buffer when flushed
This commit is contained in:
parent
cc1f18a328
commit
7d73616fda
2 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue