diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-12-08 09:47:05 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-02-17 21:38:51 +0100 |
commit | dec698c2d3a86fd8f5208bd6d0f8d7e2eba1574a (patch) | |
tree | cf8aff4472529854ea5c29b14f8c2dd930cd9d7b | |
parent | 5b0d059a8249acec033ba04b1aa8fc35181cc635 (diff) |
No OpenGLWrapper code in vcl if LIBO_HEADLESS
Change-Id: I2330661212dac11093d80e4ceb400f1efee0359f
(cherry picked from commit 663e5a54386d8bdee4ebc2bdd6f93da8a6f99ebe)
-rw-r--r-- | include/vcl/opengl/OpenGLWrapper.hxx | 8 |
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 |