diff options
author | Oliver Specht <oliver.specht@cib.de> | 2016-03-23 13:40:13 +0100 |
---|---|---|
committer | Oliver Specht <oliver.specht@cib.de> | 2016-03-25 11:05:47 +0000 |
commit | 96c1ae1d8e78ae8b9bd7d4001645cad24d62b720 (patch) | |
tree | 1482b9e0b899a783f64aaed3b9728533a81eff58 /vcl/source/window/status.cxx | |
parent | 44a6d8ac3063511a149d4abdd6c2a556b3f477fe (diff) |
fix headless build
disables OpenGL and glew usage, lets --without-gui do what
--without-x did before and disables X related test
Change-Id: I680b47c9962a0d43c8ece593db0b82e347ceebdb
Reviewed-on: https://gerrit.libreoffice.org/23474
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
Diffstat (limited to 'vcl/source/window/status.cxx')
-rw-r--r-- | vcl/source/window/status.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index 671afb6ff50c..57a867e75ba9 100644 --- a/vcl/source/window/status.cxx +++ b/vcl/source/window/status.cxx @@ -27,8 +27,10 @@ #include <vcl/status.hxx> #include <vcl/virdev.hxx> #include <vcl/settings.hxx> +#include <config_features.h> +#if HAVE_FEATURE_OPENGL #include <vcl/opengl/OpenGLWrapper.hxx> - +#endif #include <svdata.hxx> #include <window.h> @@ -711,8 +713,10 @@ void StatusBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect // tdf#94213 - un-necessary virtual-device in GL mode // causes context switch & hence flicker during sizing. +#if HAVE_FEATURE_OPENGL if( OpenGLWrapper::isVCLOpenGLEnabled() ) bOffscreen = false; +#endif if (!bOffscreen) rRenderContext.Erase(rRect); |