Initialize hw stencil renderbuffer.
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 23 May 2005 21:10:01 +0000 (21:10 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 23 May 2005 21:10:01 +0000 (21:10 +0000)
src/mesa/drivers/dri/unichrome/via_screen.c

index 0bf2d4fa4dd2b7865bed77981a741e7e358e95b0..914931593fa0ad17b5ce23a14c68242513d23ecf 100644 (file)
@@ -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 */