diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2019-12-20 16:24:30 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2019-12-20 16:24:30 +0000 |
| commit | 49b559fd6b31b7ed8cec7a00025dc46a22e647a1 (patch) | |
| tree | 6bbec15093f2b10f7208d9284439519b7ff7d917 /Graphics/GraphicsEngineOpenGL | |
| parent | Fixed run_tests.bat (diff) | |
| download | DiligentCore-49b559fd6b31b7ed8cec7a00025dc46a22e647a1.tar.gz DiligentCore-49b559fd6b31b7ed8cec7a00025dc46a22e647a1.zip | |
Added compute shader test
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<ISwapChainGL>(); |
