Prevent crash when trying to release buffer from already destroyed memory pool
This commit is contained in:
@@ -23,6 +23,8 @@ namespace OpenVulkano::Vulkan
|
||||
{
|
||||
if (memPool->FreeBuffer(buffer)) return;
|
||||
}
|
||||
Logger::RENDER->error("Attempted to released buffer to pool, but owning pool no longer exists!");
|
||||
buffer->allocation = nullptr; // Allocation is no longer valid since owning pool is gone already
|
||||
delete buffer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user