From: Keith Whitwell Date: Mon, 23 May 2005 21:10:01 +0000 (+0000) Subject: Initialize hw stencil renderbuffer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d5f12ae6b08420592e2b94ff557f327bc471a74;p=mesa.git Initialize hw stencil renderbuffer. --- 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 */