Module: Mesa Branch: gallium-mesa-7.4 Commit: 07710e64b473b9997e0b8e89fd3ba049dfda191e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=07710e64b473b9997e0b8e89fd3ba049dfda191e
Author: Alan Hourihane <[email protected]> Date: Thu Feb 19 13:07:10 2009 +0000 egl: if a surface type isn't defined let's default to EGL_WINDOW_BIT --- src/egl/main/eglconfig.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c index b19988f..f2f3258 100644 --- a/src/egl/main/eglconfig.c +++ b/src/egl/main/eglconfig.c @@ -133,6 +133,9 @@ _eglParseConfigAttribs(_EGLConfig *config, const EGLint *attrib_list) config->Attrib[i] = EGL_DONT_CARE; } + /* by default choose windows unless otherwise specified */ + config->Attrib[EGL_SURFACE_TYPE - FIRST_ATTRIB] = EGL_WINDOW_BIT; + for (i = 0; attrib_list && attrib_list[i] != EGL_NONE; i++) { const EGLint attr = attrib_list[i]; if (attr >= EGL_BUFFER_SIZE && _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
