---
 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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to