summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11/xm_api.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-14 11:55:45 -0600
committerBrian <[email protected]>2007-10-14 11:55:45 -0600
commit90f7ae2370630c45acb9287465806e5fcac44033 (patch)
tree35dde3075d4eead867b25290a10dc706c9c83069 /src/mesa/drivers/x11/xm_api.c
parent7b0b694406e4043cb163f9832c9c02934fa54568 (diff)
accum buffer support
Diffstat (limited to 'src/mesa/drivers/x11/xm_api.c')
-rw-r--r--src/mesa/drivers/x11/xm_api.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c
index 254d6863bab..1d3f799f368 100644
--- a/src/mesa/drivers/x11/xm_api.c
+++ b/src/mesa/drivers/x11/xm_api.c
@@ -442,15 +442,21 @@ create_xmesa_buffer(XMesaDrawable d, BufferType type,
_mesa_add_renderbuffer(&b->mesa_buffer, BUFFER_STENCIL, rb);
}
+ if (vis->mesa_visual.accumRedBits > 0) {
+ struct gl_renderbuffer *rb
+ = st_new_renderbuffer_fb(GL_RGBA16);
+ _mesa_add_renderbuffer(&b->mesa_buffer, BUFFER_ACCUM, rb);
+ }
+
/*
* Other renderbuffer (depth, stencil, etc)
*/
_mesa_add_soft_renderbuffers(&b->mesa_buffer,
- GL_FALSE, /* color */
- GL_FALSE,/*vis->mesa_visual.haveDepthBuffer,*/
- GL_FALSE,
- vis->mesa_visual.haveAccumBuffer,
+ GL_FALSE, /* color */
+ GL_FALSE, /*vis->mesa_visual.haveDepthBuffer,*/
+ GL_FALSE, /* stencil */
+ GL_FALSE, /* accum */
b->swAlpha,
vis->mesa_visual.numAuxBuffers > 0 );