Reducing memory usage
This commit is contained in:
@@ -464,6 +464,7 @@ CommandPool::CommandPool(PGraphics graphics, PQueue queue) : graphics(graphics),
|
||||
}
|
||||
|
||||
CommandPool::~CommandPool() {
|
||||
submitCommands();
|
||||
vkDeviceWaitIdle(graphics->getDevice());
|
||||
for (auto& cmd : allocatedBuffers) {
|
||||
cmd->checkFence();
|
||||
|
||||
Reference in New Issue
Block a user