projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec2e4e1
)
egl: if a surface type isn't defined let's default to EGL_WINDOW_BIT
author
Alan Hourihane
<alanh@vmware.com>
Thu, 19 Feb 2009 13:07:10 +0000
(13:07 +0000)
committer
Alan Hourihane
<alanh@vmware.com>
Thu, 19 Feb 2009 13:09:02 +0000
(13:09 +0000)
src/egl/main/eglconfig.c
patch
|
blob
|
history
diff --git
a/src/egl/main/eglconfig.c
b/src/egl/main/eglconfig.c
index b19988f49a918a1116636544aeb63554d248de70..f2f32585c7352a89a0c754f2ce59d60c46b0647f 100644
(file)
--- 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 &&