summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/app/saldisp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/generic/app/saldisp.cxx')
-rw-r--r--vcl/unx/generic/app/saldisp.cxx33
1 files changed, 0 insertions, 33 deletions
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index 94e3c416c3cc..efc154e14cb6 100644
--- a/vcl/unx/generic/app/saldisp.cxx
+++ b/vcl/unx/generic/app/saldisp.cxx
@@ -44,8 +44,6 @@
#include <X11/extensions/Xinerama.h>
#endif
-#include <opengl/zone.hxx>
-
#include <i18nlangtag/languagetag.hxx>
#include <tools/debug.hxx>
#include <vcl/svapp.hxx>
@@ -68,8 +66,6 @@
#include <unx/x11/xrender_peer.hxx>
#include <unx/glyphcache.hxx>
-#include <vcl/opengl/OpenGLHelper.hxx>
-
#include <poll.h>
#include <memory>
#include <vector>
@@ -174,30 +170,6 @@ sal_GetServerVendor( Display *p_display )
return vendor_unknown;
}
-bool SalDisplay::BestOpenGLVisual(Display* pDisplay, int nScreen, XVisualInfo& rVI)
-{
- OpenGLZone aZone;
-
- XVisualInfo* pVI;
- int aAttrib[] = { GLX_RGBA,
- GLX_RED_SIZE, 8,
- GLX_GREEN_SIZE, 8,
- GLX_BLUE_SIZE, 8,
- GLX_DEPTH_SIZE, 24,
- GLX_STENCIL_SIZE, 8,
- None };
-
- pVI = glXChooseVisual( pDisplay, nScreen, aAttrib );
- if( !pVI )
- return false;
-
- rVI = *pVI;
- XFree( pVI );
-
- CHECK_GL_ERROR();
- return true;
-}
-
bool SalDisplay::BestVisual( Display *pDisplay,
int nScreen,
XVisualInfo &rVI )
@@ -211,11 +183,6 @@ bool SalDisplay::BestVisual( Display *pDisplay,
if( nVID && sal_GetVisualInfo( pDisplay, nVID, rVI ) )
return rVI.visualid == nDefVID;
-// TODO SKIA
- bool bUseOpenGL = OpenGLHelper::isVCLOpenGLEnabled();
- if (bUseOpenGL && BestOpenGLVisual(pDisplay, nScreen, rVI))
- return rVI.visualid == nDefVID;
-
XVisualInfo aVI;
aVI.screen = nScreen;
// get all visuals