Trying to fix weird sync issue

This commit is contained in:
Dynamitos
2024-01-26 23:19:18 +01:00
parent 09790c4cbd
commit 1bf08f696b
12 changed files with 54 additions and 31 deletions
+1 -1
View File
@@ -459,7 +459,7 @@ CommandPool::CommandPool(PGraphics graphics, PQueue queue)
.queueFamilyIndex = queue->getFamilyIndex(),
};
VK_CHECK(vkCreateCommandPool(graphics->getDevice(), &info, nullptr, &commandPool));
// TODO: dont reset individual commands, reset pool instead
allocatedBuffers.add(new Command(graphics, commandPool, this));
command = allocatedBuffers.back();