summaryrefslogtreecommitdiff
path: root/src/egl/main
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@vmware.com>2009-02-19 13:07:10 +0000
committerAlan Hourihane <alanh@vmware.com>2009-02-19 13:09:02 +0000
commitb57c9fd83f23d011765b6c68bce090c9a5458886 (patch)
tree8f8811309de3719f88e1f6e0ae9126255c6e466b /src/egl/main
parentec2e4e1fedf317c72fc087115f1b6485cb04cdf8 (diff)
egl: if a surface type isn't defined let's default to EGL_WINDOW_BIT
Diffstat (limited to 'src/egl/main')
-rw-r--r--src/egl/main/eglconfig.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c
index b19988f49a..f2f32585c7 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 &&