summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-01-14 21:27:51 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-01-14 21:27:51 +0000
commit30e4a8b9859b0502b8d418c5e194d32983bc01b7 (patch)
tree18aaa832a390af838995561e20b4e86300afb4ba /Graphics/GraphicsEngineOpenGL
parentQueryTest: fixed issue with OpenGL: glFinish() does not guarantee that querie... (diff)
downloadDiligentCore-30e4a8b9859b0502b8d418c5e194d32983bc01b7.tar.gz
DiligentCore-30e4a8b9859b0502b8d418c5e194d32983bc01b7.zip
Mnor update to DeviceContextGLImpl::WaitForIdle
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp
index efffb8b6..f8a7cc76 100644
--- a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp
@@ -1058,6 +1058,7 @@ void DeviceContextGLImpl::WaitForFence(IFence* pFence, Uint64 Value, bool FlushC
void DeviceContextGLImpl::WaitForIdle()
{
VERIFY(!m_bIsDeferred, "Only immediate contexts can be idled");
+ Flush();
glFinish();
}