projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5ab469
)
egl: EGL_MATCH_NATIVE_NATIVE_PIXMAP cannot be EGL_DONT_CARE
author
Chia-I Wu
<olv@lunarg.com>
Thu, 28 Jul 2011 07:03:11 +0000
(16:03 +0900)
committer
Chia-I Wu
<olv@lunarg.com>
Fri, 29 Jul 2011 01:24:45 +0000
(10:24 +0900)
src/egl/main/eglconfig.c
patch
|
blob
|
history
diff --git
a/src/egl/main/eglconfig.c
b/src/egl/main/eglconfig.c
index 483d9807cf09537f20577b25ef4e6ca28ff48585..e1d53da3cd57bb97b244ea9aae4104a502cb189d 100644
(file)
--- 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 */