diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-08-04 00:22:58 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-08-04 00:22:58 +0000 |
| commit | 32f8ed61f2a24342bc721051a0493fc4eacc3134 (patch) | |
| tree | 04e6ff61ff19e1a3c5a03dcc5aa87268aa23e7bf /Graphics/GraphicsEngineNextGenBase | |
| parent | Added comparison opertors to SubpassDependencyDesc struct (diff) | |
| download | DiligentCore-32f8ed61f2a24342bc721051a0493fc4eacc3134.tar.gz DiligentCore-32f8ed61f2a24342bc721051a0493fc4eacc3134.zip | |
Vk device: fixed issue with render pass cache destruction
Diffstat (limited to 'Graphics/GraphicsEngineNextGenBase')
| -rw-r--r-- | Graphics/GraphicsEngineNextGenBase/include/RenderDeviceNextGenBase.hpp | 2 |
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"); |
