diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 337889781d2..89fc1c8997e 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -183,16 +183,6 @@ dri_is_thread_safe(void *loaderPrivate) return false; #endif -#ifdef HAVE_XCB_PLATFORM - if (display->Platform == _EGL_PLATFORM_XCB) - return true; -#endif - -#ifdef HAVE_WAYLAND_PLATFORM - if (display->Platform == _EGL_PLATFORM_WAYLAND) - return true; -#endif - return true; }