summaryrefslogtreecommitdiffstats
path: root/include
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 /include
parentdbaccess: fix windows build breakage (diff)
downloadcore-e16e64dd862c8f386f80de43ad68e831e169d49d.tar.gz
core-e16e64dd862c8f386f80de43ad68e831e169d49d.zip
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 'include')
-rw-r--r--include/vcl/opengl/OpenGLHelper.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/opengl/OpenGLHelper.hxx b/include/vcl/opengl/OpenGLHelper.hxx
index 95c23c8deeaa..d14df0d2b192 100644
--- a/include/vcl/opengl/OpenGLHelper.hxx
+++ b/include/vcl/opengl/OpenGLHelper.hxx
@@ -67,6 +67,9 @@ public:
*/
static bool isVCLOpenGLEnabled();
+ /// flush the OpenGL command queue - if OpenGL is enabled.
+ static void flush();
+
#if defined UNX && !defined MACOSX && !defined IOS && !defined ANDROID && !defined(LIBO_HEADLESS)
static bool GetVisualInfo(Display* pDisplay, int nScreen, XVisualInfo& rVI);
static GLXFBConfig GetPixmapFBConfig( Display* pDisplay, bool& bInverted );