Prevent crash when trying to release buffer from already destroyed memory pool

This commit is contained in:
Georg Hagen
2024-08-21 15:45:46 +02:00
parent 6f19758beb
commit 35515c7902
5 changed files with 7 additions and 3 deletions

View File

@@ -98,6 +98,7 @@ namespace OpenVulkano::Vulkan
{
transferQueue.waitIdle();
transferQueue = nullptr;
OnShutdown(this); // Notify all custom resources that it's time to die
geometries.clear();
nodes.clear();
textures.clear();