diff options
author | Eric Engestrom <[email protected]> | 2019-09-10 17:06:09 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-11-11 17:14:07 +0000 |
commit | 86d3a346f1576acb6c2f8c3be3853a6a3e226b5c (patch) | |
tree | eb7987fc2a956501214d44653c9ac2963d88f7da /src/egl | |
parent | 20b403aad0db5dda579de9ff31c38906b277d364 (diff) |
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: [email protected]
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r-- | src/egl/main/egldisplay.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c index aea2156cccf..f6e85c79aa9 100644 --- a/src/egl/main/egldisplay.c +++ b/src/egl/main/egldisplay.c @@ -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; |