From ff707ead2b6453d24942ce1a1b3a41ce281b5b50 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 24 Nov 2005 03:41:56 +0000 Subject: [PATCH] init attribs to EGL_DONT_CARE in _eglParseConfigAttribs() --- src/egl/main/eglconfig.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c index 1e1f88bf5f1..ab141dc1286 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; -- 2.30.2