From e03b5cdf3fb4dafe565c06179124644e218e9cde Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Tue, 17 May 2005 02:12:29 +0000 Subject: Make EGL_NO_MODE_MESA work. --- src/egl/main/eglscreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/egl/main') 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; } -- cgit v1.1