summaryrefslogtreecommitdiffstats
path: root/src/egl/main
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2005-05-17 02:12:29 +0000
committerJon Smirl <jonsmirl@gmail.com>2005-05-17 02:12:29 +0000
commite03b5cdf3fb4dafe565c06179124644e218e9cde (patch)
tree5c7356023e51c32f0ff521a4761fb6d290a8a189 /src/egl/main
parent167b141e6eac1af5fc8fcd4129216a3125b08501 (diff)
downloadexternal_mesa3d-e03b5cdf3fb4dafe565c06179124644e218e9cde.zip
external_mesa3d-e03b5cdf3fb4dafe565c06179124644e218e9cde.tar.gz
external_mesa3d-e03b5cdf3fb4dafe565c06179124644e218e9cde.tar.bz2
Make EGL_NO_MODE_MESA work.
Diffstat (limited to 'src/egl/main')
-rw-r--r--src/egl/main/eglscreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/eglscreen.c b/src/egl/main/eglscreen.c
index 9669a22..230fc4a 100644
--- a/src/egl/main/eglscreen.c
+++ b/src/egl/main/eglscreen.c
@@ -187,7 +187,7 @@ _eglShowSurfaceMESA(_EGLDriver *drv, EGLDisplay dpy, EGLScreenMESA screen,
_eglError(EGL_BAD_SCREEN_MESA, "eglShowSurfaceMESA");
return EGL_FALSE;
}
- if (!mode) {
+ if (!mode && (m != EGL_NO_MODE_MESA )) {
_eglError(EGL_BAD_MODE_MESA, "eglShowSurfaceMESA");
return EGL_FALSE;
}