summaryrefslogtreecommitdiffstats
path: root/src/core/gl_surface_qt.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-09-04 16:27:06 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-09-06 14:34:23 +0000
commit29ca55aab375fe2065ef76a470c567a8d9a55c7d (patch)
tree1ae3e4afdd38fcb2f61c06249060bc17cc0333d7 /src/core/gl_surface_qt.cpp
parent9f5b3d04bb2cecd87e794d9491d97e14e64f0b6d (diff)
Read egldisplay from QPA
Follow up to 6e6e2655bf03f2cc903f17d9e5283a81a4a837c2, we should get egldisplay from QPA, otherwise we end up with the wrong values. Change-Id: I668511a1ae9ab6f4f5132707ae03afc3fe3722ac Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/core/gl_surface_qt.cpp')
-rw-r--r--src/core/gl_surface_qt.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/gl_surface_qt.cpp b/src/core/gl_surface_qt.cpp
index d3bad4926..86bb4fda9 100644
--- a/src/core/gl_surface_qt.cpp
+++ b/src/core/gl_surface_qt.cpp
@@ -535,12 +535,7 @@ GLSurface::CreateViewGLSurface(gfx::AcceleratedWidget window)
std::string DriverEGL::GetPlatformExtensions()
{
-#if defined(USE_X11)
- EGLNativeDisplayType nativeDisplay = reinterpret_cast<EGLNativeDisplayType>(GLContextHelper::getXDisplay());
- EGLDisplay display = eglGetDisplay(nativeDisplay);
-#else
EGLDisplay display = GLContextHelper::getEGLDisplay();
-#endif
if (display == EGL_NO_DISPLAY)
return "";