summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-08-06 18:30:15 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-08-06 18:30:15 +0000
commit6e663135a6d194f5ed8b41f112c6d5a2c98b080d (patch)
treec5e4f26bfdc01c29e23b2f3f8706891730ded78c /Graphics/GraphicsEngine
parentFixed GCC compiler warnings (diff)
downloadDiligentCore-6e663135a6d194f5ed8b41f112c6d5a2c98b080d.tar.gz
DiligentCore-6e663135a6d194f5ed8b41f112c6d5a2c98b080d.zip
Added few debug checks
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/include/DeviceContextBase.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/include/DeviceContextBase.hpp b/Graphics/GraphicsEngine/include/DeviceContextBase.hpp
index c932d3b4..4df47bfc 100644
--- a/Graphics/GraphicsEngine/include/DeviceContextBase.hpp
+++ b/Graphics/GraphicsEngine/include/DeviceContextBase.hpp
@@ -750,6 +750,9 @@ inline void DeviceContextBase<BaseInterface, ImplementationTraits>::ClearStateCa
m_NumScissorRects = 0;
ResetRenderTargets();
+
+ m_pActiveRenderPass = nullptr;
+ m_pBoundFramebuffer = nullptr;
}
template <typename BaseInterface, typename ImplementationTraits>