Fix the memory error by adding the mesh to the main delete queue.
This commit is contained in:
parent
7ae6a63295
commit
196b3098e8
1 changed files with 5 additions and 0 deletions
|
|
@ -58,6 +58,11 @@ void VulkanEngine::cleanup()
|
||||||
_frames[i]._deletionQueue.flush();
|
_frames[i]._deletionQueue.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (auto& mesh : testMeshes) {
|
||||||
|
destroy_buffer(mesh->meshBuffers.indexBuffer);
|
||||||
|
destroy_buffer(mesh->meshBuffers.vertexBuffer);
|
||||||
|
}
|
||||||
|
|
||||||
_mainDeletionQueue.flush();
|
_mainDeletionQueue.flush();
|
||||||
|
|
||||||
destroy_swapchain();
|
destroy_swapchain();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue