summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineNextGenBase
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineNextGenBase')
-rw-r--r--Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.hpp2
1 files changed, 2 insertions, 0 deletions
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 <typename ObjectType, typename = typename std::enable_if<std::is_object<ObjectType>::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");