egl: set EGL_SAMPLES, EGL_SAMPLE_BUFFERS config attribs
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 16 Jul 2008 16:34:50 +0000 (10:34 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 16 Jul 2008 16:35:12 +0000 (10:35 -0600)
src/egl/drivers/xdri/egl_xdri.c

index 2471c0425cfa8e86e952aebdbb9e3316e3b0fff7..3681d9879a230820f9d551ce768e33b5e98ead2a 100644 (file)
@@ -203,6 +203,8 @@ create_configs(_EGLDisplay *disp, __GLXdisplayPrivate *glx_priv)
          SET_CONFIG_ATTRIB(&config->Base, EGL_ALPHA_SIZE, m->alphaBits);
          SET_CONFIG_ATTRIB(&config->Base, EGL_DEPTH_SIZE, m->depthBits);
          SET_CONFIG_ATTRIB(&config->Base, EGL_STENCIL_SIZE, m->stencilBits);
+         SET_CONFIG_ATTRIB(&config->Base, EGL_SAMPLES, m->samples);
+         SET_CONFIG_ATTRIB(&config->Base, EGL_SAMPLE_BUFFERS, m->sampleBuffers);
          SET_CONFIG_ATTRIB(&config->Base, EGL_NATIVE_VISUAL_ID, m->visualID);
          SET_CONFIG_ATTRIB(&config->Base, EGL_NATIVE_VISUAL_TYPE, m->visualType);
          SET_CONFIG_ATTRIB(&config->Base, EGL_CONFORMANT, all_apis);