egl: only windows are renderable at this time
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 10 Jun 2008 22:14:35 +0000 (16:14 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 10 Jun 2008 22:14:35 +0000 (16:14 -0600)
src/egl/drivers/xdri/egl_xdri.c

index 4c8511fbbfec776773f8fa00b845dc132956a47e..60753a1c1f40fb6aab498489c6705b6b781e9185 100644 (file)
@@ -183,6 +183,9 @@ create_configs(_EGLDisplay *disp)
          SET_CONFIG_ATTRIB(&config->Base, EGL_STENCIL_SIZE, m->stencilBits);
          SET_CONFIG_ATTRIB(&config->Base, EGL_NATIVE_VISUAL_ID, m->visualID);
          SET_CONFIG_ATTRIB(&config->Base, EGL_NATIVE_VISUAL_TYPE, m->visualType);
+         /* XXX only window rendering allowed ATM */
+         SET_CONFIG_ATTRIB(&config->Base, EGL_SURFACE_TYPE, EGL_WINDOW_BIT);
+
          /* XXX possibly other things to init... */
 
          /* Ptr from EGL config to GLcontextMode.  Used in CreateContext(). */