From 49b559fd6b31b7ed8cec7a00025dc46a22e647a1 Mon Sep 17 00:00:00 2001 From: assiduous Date: Fri, 20 Dec 2019 08:24:30 -0800 Subject: Added compute shader test --- Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Graphics/GraphicsEngineOpenGL') diff --git a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp index 807a0b0a..26dd4121 100644 --- a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp @@ -309,6 +309,9 @@ void DeviceContextGLImpl::SetScissorRects(Uint32 NumRects, const Rect* pRects, U void DeviceContextGLImpl::CommitRenderTargets() { + if (!m_IsDefaultFramebufferBound && m_NumBoundRenderTargets == 0 && !m_pBoundDepthStencil) + return; + if (m_IsDefaultFramebufferBound) { auto* pSwapChainGL = m_pSwapChain.RawPtr(); -- cgit v1.2.3