summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglconfig.c
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2011-07-28 16:03:11 +0900
committerChia-I Wu <olv@lunarg.com>2011-07-29 10:24:45 +0900
commitd6a9564854601bd01a1132f0a17fcab1d2a41481 (patch)
treeaa6b69895407f3b95892d85a23fb71542da80f7f /src/egl/main/eglconfig.c
parenta5ab46909e9475da0eb8c814efb8e1859a6e6ed3 (diff)
downloadexternal_mesa3d-d6a9564854601bd01a1132f0a17fcab1d2a41481.zip
external_mesa3d-d6a9564854601bd01a1132f0a17fcab1d2a41481.tar.gz
external_mesa3d-d6a9564854601bd01a1132f0a17fcab1d2a41481.tar.bz2
egl: EGL_MATCH_NATIVE_NATIVE_PIXMAP cannot be EGL_DONT_CARE
Diffstat (limited to 'src/egl/main/eglconfig.c')
-rw-r--r--src/egl/main/eglconfig.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c
index 483d980..e1d53da 100644
--- a/src/egl/main/eglconfig.c
+++ b/src/egl/main/eglconfig.c
@@ -529,8 +529,9 @@ _eglParseConfigAttribList(_EGLConfig *conf, _EGLDisplay *dpy,
if (!_eglValidateConfig(conf, EGL_TRUE))
return EGL_FALSE;
- /* the spec says that EGL_LEVEL cannot be EGL_DONT_CARE */
- if (conf->Level == EGL_DONT_CARE)
+ /* EGL_LEVEL and EGL_MATCH_NATIVE_PIXMAP cannot be EGL_DONT_CARE */
+ if (conf->Level == EGL_DONT_CARE ||
+ conf->MatchNativePixmap == EGL_DONT_CARE)
return EGL_FALSE;
/* ignore other attributes when EGL_CONFIG_ID is given */