summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
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();
}