projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff707ea
)
change error test in _eglParseConfigAttribs()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 24 Nov 2005 03:48:19 +0000
(
03:48
+0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 24 Nov 2005 03:48:19 +0000
(
03:48
+0000)
src/egl/main/eglconfig.c
patch
|
blob
|
history
diff --git
a/src/egl/main/eglconfig.c
b/src/egl/main/eglconfig.c
index ab141dc1286b426a0247acc5da238b6ddfffcb38..eba608b0ba8e2764c9f03db6c8bd6e0c25efb5e0 100644
(file)
--- a/
src/egl/main/eglconfig.c
+++ b/
src/egl/main/eglconfig.c
@@
-153,8
+153,11
@@
_eglParseConfigAttribs(_EGLConfig *config, const EGLint *attrib_list)
}
for (i = 0; attrib_list && attrib_list[i] != EGL_NONE; i++) {
- EGLint k = attrib_list[i] - FIRST_ATTRIB;
- if (k >= 0 && k < MAX_ATTRIBS) {
+ if (attrib_list[i] >= EGL_BUFFER_SIZE &&
+ attrib_list[i] <= EGL_MAX_SWAP_INTERVAL) {
+ EGLint k = attrib_list[i] - FIRST_ATTRIB;
+ assert(k >= 0);
+ assert(k < MAX_ATTRIBS);
config->Attrib[k] = attrib_list[++i];
}
else {