Skip to content
Snippets Groups Projects
Commit 86d3a346 authored by Eric Engestrom's avatar Eric Engestrom :no_entry:
Browse files

egl: fix _EGL_NATIVE_PLATFORM fallback


When the X11 or Haiku platforms were compiled in, they would bypass the
`_EGL_NATIVE_PLATFORM` fallback by always returning themselves instead.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: default avatarEric Engestrom <eric.engestrom@intel.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
parent 20b403aa
No related merge requests found
......@@ -138,15 +138,6 @@ _eglNativePlatformDetectNativeDisplay(void *nativeDisplay)
if (first_pointer == gbm_create_device)
return _EGL_PLATFORM_DRM;
#endif
#ifdef HAVE_X11_PLATFORM
/* If not matched to any other platform, fallback to x11. */
return _EGL_PLATFORM_X11;
#endif
#ifdef HAVE_HAIKU_PLATFORM
return _EGL_PLATFORM_HAIKU;
#endif
}
return _EGL_INVALID_PLATFORM;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment