[Mesa-dev] [PATCH mesa 11/12] egl: remove wayland special case which is also the default case
Eric Engestrom
eric.engestrom at intel.com
Mon Oct 29 17:13:32 UTC 2018
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
---
src/egl/drivers/dri2/egl_dri2.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index c5fa935657e8165be49c..7d9e24d79ddf833802fb 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -99,10 +99,9 @@ dri2_gl_flush()
static GLboolean
dri_is_thread_safe(void *loaderPrivate)
{
+#ifdef HAVE_X11_PLATFORM
struct dri2_egl_surface *dri2_surf = loaderPrivate;
_EGLDisplay *display = dri2_surf->base.Resource.Display;
-
-#ifdef HAVE_X11_PLATFORM
Display *xdpy = (Display*)display->PlatformDisplay;
/* Check Xlib is running in thread safe mode when running on EGL/X11-xlib
@@ -115,11 +114,6 @@ dri_is_thread_safe(void *loaderPrivate)
return false;
#endif
-#ifdef HAVE_WAYLAND_PLATFORM
- if (display->Platform == _EGL_PLATFORM_WAYLAND)
- return true;
-#endif
-
return true;
}
--
Cheers,
Eric
More information about the mesa-dev
mailing list