summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2005-05-23 21:10:01 +0000
committerKeith Whitwell <[email protected]>2005-05-23 21:10:01 +0000
commit2d5f12ae6b08420592e2b94ff557f327bc471a74 (patch)
treef6315f5ad1c198ba4957eef96c9ac2d03c4c05ce
parentafa7f6a0f5b3e4266a455a0d4deca749dca1dc7e (diff)
Initialize hw stencil renderbuffer.
-rw-r--r--src/mesa/drivers/dri/unichrome/via_screen.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_screen.c b/src/mesa/drivers/dri/unichrome/via_screen.c
index 0bf2d4fa4dd..914931593fa 100644
--- a/src/mesa/drivers/dri/unichrome/via_screen.c
+++ b/src/mesa/drivers/dri/unichrome/via_screen.c
@@ -292,15 +292,13 @@ viaCreateBuffer(__DRIscreenPrivate *driScrnPriv,
_mesa_add_renderbuffer(fb, BUFFER_DEPTH, &depthRb->Base);
}
- /* no h/w stencil?
if (mesaVis->stencilBits > 0 && !swStencil) {
driRenderbuffer *stencilRb
- = driNewRenderbuffer(GL_STENCIL_INDEX8_EXT, screen->cpp,
- screen->depthOffset, screen->depthPitch);
+ = driNewRenderbuffer(GL_STENCIL_INDEX8_EXT, screen->bytesPerPixel,
+ 0, screen->width);
viaSetSpanFunctions(stencilRb, mesaVis);
_mesa_add_renderbuffer(fb, BUFFER_STENCIL, &stencilRb->Base);
}
- */
_mesa_add_soft_renderbuffers(fb,
GL_FALSE, /* color */