Fix for command buffer flush (Fixes #176)
This commit is contained in:
parent
51e06ad7fa
commit
875f4a93ea
1 changed files with 1 additions and 4 deletions
|
|
@ -187,11 +187,8 @@ public:
|
||||||
VK_CHECK_RESULT(vkQueueSubmit(queue, 1, &submitInfo, VK_NULL_HANDLE));
|
VK_CHECK_RESULT(vkQueueSubmit(queue, 1, &submitInfo, VK_NULL_HANDLE));
|
||||||
VK_CHECK_RESULT(vkQueueWaitIdle(queue));
|
VK_CHECK_RESULT(vkQueueWaitIdle(queue));
|
||||||
|
|
||||||
if (free)
|
|
||||||
{
|
|
||||||
vkFreeCommandBuffers(device, cmdPool, 1, &commandBuffer);
|
vkFreeCommandBuffers(device, cmdPool, 1, &commandBuffer);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Build separate command buffers for every framebuffer image
|
// Build separate command buffers for every framebuffer image
|
||||||
// Unlike in OpenGL all rendering commands are recorded once
|
// Unlike in OpenGL all rendering commands are recorded once
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue