diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-09-14 19:18:05 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-09-14 19:18:05 -0400 |
| commit | 7a81e1a2c5344252319fad13adffcf3e68518e6e (patch) | |
| tree | d9687e44dbf514b7cf61db95c579ee2a87d85128 /src | |
| parent | 471f9de68e636134a6160057a15af4ba344bc75f (diff) | |
transferCommandPool needs reset command buffer bit
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp index 1c53d7b..e806d02 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -843,7 +843,7 @@ void CreateCommandPool() { throw "failed to create command pool"; } - poolInfo.flags = VK_COMMAND_POOL_CREATE_TRANSIENT_BIT; + poolInfo.flags = VK_COMMAND_POOL_CREATE_TRANSIENT_BIT | VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT; poolInfo.queueFamilyIndex = transferFamilyIndex; result = vkCreateCommandPool(vkDevice, &poolInfo, vkAllocator, &transferCommandPool); if (result != VK_SUCCESS) { |
