[Mesa-dev] [PATCH RESEND] egl: fix null platform autodetection

Fredrik Höglund fredrik at kde.org
Fri Oct 7 11:05:47 PDT 2011


---
 src/egl/main/egldisplay.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c
index 39ba883..4960800 100644
--- a/src/egl/main/egldisplay.c
+++ b/src/egl/main/egldisplay.c
@@ -146,7 +146,11 @@ _eglNativePlatformDetectNativeDisplay(EGLNativeDisplayType nativeDisplay)
 #endif
 
    if (nativeDisplay == EGL_DEFAULT_DISPLAY)
+#ifdef HAVE_NULL_PLATFORM
+      return _EGL_PLATFORM_NULL;
+#else
       return _EGL_INVALID_PLATFORM;
+#endif
 
 #ifdef HAVE_FBDEV_PLATFORM
    /* fbdev is the only platform that can be a file descriptor. */
-- 
1.7.6



More information about the mesa-dev mailing list