summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-12-04 12:14:47 +0100
committerLuboš Luňák <l.lunak@collabora.com>2020-12-07 20:46:49 +0100
commitdb89f53c31af997b9bf422b0e784afba8d62a42e (patch)
treeda11fedb71f01b6d21a32f95c0a9ccecb43fc265 /cui
parent6265cfca9d775198e81166b914f5dcaea58802db (diff)
remove OpenGL VCL backend code
It is by now practically unmaintained, even bugreports in bugzilla have been already closed for it. AFAICT this used to be really used only on Windows, where it's no longer the default. There's still some OpenGL code left, because there are still two other places that use OpenGL. One is OpenGL slideshows, which reuse some of the base OpenGL code (and I've checked they still work even after this removal). Second one is OpenGL canvas, which it seems has never been finished or enabled (or so it most probably should be dumped too). Change-Id: I7ea5aef77ec252eb8e712d167db591209be84a13 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107290 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optgdlg.cxx10
1 files changed, 0 insertions, 10 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index 07435990a234..a1b820b93585 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -78,9 +78,6 @@
#include <vcl/settings.hxx>
#include <vcl/window.hxx>
#include <vcl/IconThemeInfo.hxx>
-#if HAVE_FEATURE_OPENGL
-#include <vcl/opengl/OpenGLWrapper.hxx>
-#endif
#include <vcl/skia/SkiaHelper.hxx>
#include "optgdlg.hxx"
#include <svtools/apearcfg.hxx>
@@ -467,13 +464,6 @@ CanvasSettings::CanvasSettings() :
bool CanvasSettings::IsHardwareAccelerationAvailable() const
{
-#if HAVE_FEATURE_OPENGL
- if (OpenGLWrapper::isVCLOpenGLEnabled() && Application::GetToolkitName() != "gtk3")
- {
- mbHWAccelAvailable = false;
- return false;
- }
-#endif
if( !mbHWAccelChecked )
{
mbHWAccelChecked = true;