summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-23 21:59:06 +0100
committerBrian <[email protected]>2007-08-23 21:59:06 +0100
commit17598ad591a1eebe66cdefa332600f2952de92a0 (patch)
tree832a42f6b46a08edf2f6b2182f38345db13e45fb /src/mesa/drivers
parentac8249d0ed382c547a2219449fa6dea328b19193 (diff)
fix-up stencil buffers
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/x11/xm_api.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c
index 69b7277c1b4..254d6863bab 100644
--- a/src/mesa/drivers/x11/xm_api.c
+++ b/src/mesa/drivers/x11/xm_api.c
@@ -436,6 +436,12 @@ create_xmesa_buffer(XMesaDrawable d, BufferType type,
_mesa_add_renderbuffer(&b->mesa_buffer, BUFFER_DEPTH, rb);
}
+ if (vis->mesa_visual.stencilBits > 0) {
+ struct gl_renderbuffer *rb
+ = st_new_renderbuffer_fb(GL_STENCIL_INDEX8_EXT);
+ _mesa_add_renderbuffer(&b->mesa_buffer, BUFFER_STENCIL, rb);
+ }
+
/*
* Other renderbuffer (depth, stencil, etc)
@@ -443,7 +449,7 @@ create_xmesa_buffer(XMesaDrawable d, BufferType type,
_mesa_add_soft_renderbuffers(&b->mesa_buffer,
GL_FALSE, /* color */
GL_FALSE,/*vis->mesa_visual.haveDepthBuffer,*/
- vis->mesa_visual.haveStencilBuffer,
+ GL_FALSE,
vis->mesa_visual.haveAccumBuffer,
b->swAlpha,
vis->mesa_visual.numAuxBuffers > 0 );