r300: fix stencil clears
authorDave Airlie <airlied@redhat.com>
Tue, 31 Mar 2009 10:10:48 +0000 (20:10 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 31 Mar 2009 10:10:48 +0000 (20:10 +1000)
src/mesa/drivers/dri/r300/r300_ioctl.c

index 71661eef19c81951057cd48e51b07b7f6a0e3afd..1314550e54455417c3ce95b98dabfd17b043a6d7 100644 (file)
@@ -558,6 +558,9 @@ static void r300KernelClear(GLcontext *ctx, GLuint flags)
        if (rrbd && (flags & BUFFER_BIT_DEPTH))
                bits |= CLEARBUFFER_DEPTH;
 
+       if (rrbd && (flags & BUFFER_BIT_STENCIL))
+               bits |= CLEARBUFFER_STENCIL;
+
        if (flags & BUFFER_BIT_COLOR0) {
                rrb = radeon_get_renderbuffer(&rfb->base, BUFFER_COLOR0);
                r300ClearBuffer(r300, CLEARBUFFER_COLOR, rrb, NULL);