summaryrefslogtreecommitdiff
path: root/include/vcl/opengl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-12-08 09:47:05 +0200
committerTor Lillqvist <tml@collabora.com>2016-12-08 10:29:15 +0200
commit663e5a54386d8bdee4ebc2bdd6f93da8a6f99ebe (patch)
tree719a4a794fd68b1f4bae61c6f3d3d6cbe87ced15 /include/vcl/opengl
parent986ba9a7e8b49f0c37fbd8f855e249a9f257ad08 (diff)
No OpenGLWrapper code in vcl if LIBO_HEADLESS
Change-Id: I2330661212dac11093d80e4ceb400f1efee0359f
Diffstat (limited to 'include/vcl/opengl')
-rw-r--r--include/vcl/opengl/OpenGLWrapper.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/vcl/opengl/OpenGLWrapper.hxx b/include/vcl/opengl/OpenGLWrapper.hxx
index 3b7f6a7e91da..5032234ba0e1 100644
--- a/include/vcl/opengl/OpenGLWrapper.hxx
+++ b/include/vcl/opengl/OpenGLWrapper.hxx
@@ -22,13 +22,19 @@ struct VCL_DLLPUBLIC OpenGLWrapper
/**
* Returns true if VCL has OpenGL rendering enabled
*/
+#ifdef LIBO_HEADLESS
+ static bool isVCLOpenGLEnabled()
+ {
+ return false;
+ }
+#else
static bool isVCLOpenGLEnabled();
-
/**
* Returns the number of times OpenGL buffers have been swapped.
*/
static sal_Int64 getBufferSwapCounter();
+#endif
};
#endif // INCLUDED_VCL_OPENGL_OPENGLWRAPPER_HXX