diff options
author | Keith Whitwell <[email protected]> | 2005-05-23 21:10:01 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-05-23 21:10:01 +0000 |
commit | 2d5f12ae6b08420592e2b94ff557f327bc471a74 (patch) | |
tree | f6315f5ad1c198ba4957eef96c9ac2d03c4c05ce /src/mesa/drivers/dri | |
parent | afa7f6a0f5b3e4266a455a0d4deca749dca1dc7e (diff) |
Initialize hw stencil renderbuffer.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_screen.c | 6 |
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 */ |