st/egl: Fix a typo in determining the render buffer.
authorChia-I Wu <olv@lunarg.com>
Fri, 9 Apr 2010 15:38:12 +0000 (23:38 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 9 Apr 2010 17:19:53 +0000 (01:19 +0800)
src/gallium/state_trackers/egl/common/egl_g3d.c

index 21fa6c8d4f6272867d39ddd9224a74e6ed1a3e21..427c7e456a43efb4306b677ab1709ee0e9abffa4 100644 (file)
@@ -236,7 +236,7 @@ egl_g3d_init_config(_EGLDriver *drv, _EGLDisplay *dpy,
    gconf->stvis.accum_format = PIPE_FORMAT_NONE;
    gconf->stvis.samples = 0;
 
-   gconf->stvis.render_buffer = (buffer_mask & ST_ATTACHMENT_BACK_LEFT) ?
+   gconf->stvis.render_buffer = (buffer_mask & ST_ATTACHMENT_BACK_LEFT_MASK) ?
       ST_ATTACHMENT_BACK_LEFT : ST_ATTACHMENT_FRONT_LEFT;
 
    api_mask = 0;