summaryrefslogtreecommitdiff
path: root/src/egl/main
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-11-24 03:41:56 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-11-24 03:41:56 +0000
commitff707ead2b6453d24942ce1a1b3a41ce281b5b50 (patch)
tree6de9532d4c2d68215bd4a9b3c9b92df56716ce6b /src/egl/main
parent181f2b92cb2544b5274d1a72894d019e85662b46 (diff)
init attribs to EGL_DONT_CARE in _eglParseConfigAttribs()
Diffstat (limited to 'src/egl/main')
-rw-r--r--src/egl/main/eglconfig.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c
index 1e1f88bf5f..ab141dc128 100644
--- a/src/egl/main/eglconfig.c
+++ b/src/egl/main/eglconfig.c
@@ -147,7 +147,10 @@ _eglParseConfigAttribs(_EGLConfig *config, const EGLint *attrib_list)
{
EGLint i;
- /* XXX set all config attribs to EGL_DONT_CARE */
+ /* set all config attribs to EGL_DONT_CARE */
+ for (i = 0; i < MAX_ATTRIBS; i++) {
+ config->Attrib[i] = EGL_DONT_CARE;
+ }
for (i = 0; attrib_list && attrib_list[i] != EGL_NONE; i++) {
EGLint k = attrib_list[i] - FIRST_ATTRIB;