From 32f8ed61f2a24342bc721051a0493fc4eacc3134 Mon Sep 17 00:00:00 2001 From: assiduous Date: Mon, 3 Aug 2020 17:22:58 -0700 Subject: Vk device: fixed issue with render pass cache destruction --- Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Graphics/GraphicsEngineNextGenBase') diff --git a/Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.hpp b/Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.hpp index 7f9d19c7..d3eb8fa3 100644 --- a/Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.hpp +++ b/Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.hpp @@ -100,6 +100,8 @@ public: template ::value>::type> void SafeReleaseDeviceObject(ObjectType&& Object, Uint64 QueueMask) { + VERIFY(m_CommandQueues != nullptr, "Command queues have been destroyed. Are you releasing an object from the render device destructor?"); + QueueMask &= GetCommandQueueMask(); VERIFY(QueueMask != 0, "At least one bit should be set in the command queue mask"); -- cgit v1.2.3