Fix crash on GPUDeviceVulkan dispose if compute queue was using graphics queue

This commit is contained in:
mafiesto4
2021-01-17 23:35:15 +01:00
committed by Wojtek Figat
parent 3e0b753498
commit 5f7f53304d

View File

@@ -1888,9 +1888,11 @@ void GPUDeviceVulkan::Dispose()
SAFE_DELETE_GPU_RESOURCE(UniformBufferUploader);
Delete(DescriptorPoolsManager);
SAFE_DELETE(MainContext);
if (TransferQueue != GraphicsQueue && ComputeQueue != TransferQueue)
SAFE_DELETE(TransferQueue);
if (ComputeQueue != GraphicsQueue)
SAFE_DELETE(ComputeQueue);
SAFE_DELETE(GraphicsQueue);
SAFE_DELETE(ComputeQueue);
SAFE_DELETE(TransferQueue);
PresentQueue = nullptr;
FenceManager.Dispose();
DeferredDeletionQueue.ReleaseResources(true);