summaryrefslogtreecommitdiff
path: root/vcl/source/opengl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-08-26 17:17:19 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-08-26 21:10:27 +0000
commite16e64dd862c8f386f80de43ad68e831e169d49d (patch)
tree0494634d122958d43713d0d6de424268d06f7f3c /vcl/source/opengl
parent13cd7ea2b3123e24bb5ff29a8dcbb55a8fcf3859 (diff)
tdf#93530 - the VCL GDI flushing abstraction should glFlush too.
Change-Id: I45cb0e62278d8c3154ae8ad54ca4c93b3e177969 Reviewed-on: https://gerrit.libreoffice.org/18030 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl/source/opengl')
-rw-r--r--vcl/source/opengl/OpenGLHelper.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx
index 2e68bdc641d3..717a7ba3969e 100644
--- a/vcl/source/opengl/OpenGLHelper.cxx
+++ b/vcl/source/opengl/OpenGLHelper.cxx
@@ -705,4 +705,13 @@ GLXFBConfig OpenGLHelper::GetPixmapFBConfig( Display* pDisplay, bool& bInverted
#endif
+void OpenGLHelper::flush()
+{
+ if (!isVCLOpenGLEnabled())
+ return;
+
+ glFlush();
+ CHECK_GL_ERROR();
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */