init attribs to EGL_DONT_CARE in _eglParseConfigAttribs()
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 24 Nov 2005 03:41:56 +0000 (03:41 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 24 Nov 2005 03:41:56 +0000 (03:41 +0000)
src/egl/main/eglconfig.c

index 1e1f88bf5f13c7ec21dd55b0ffcbf1f827001063..ab141dc1286b426a0247acc5da238b6ddfffcb38 100644 (file)
@@ -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;