From 5c7fc1cb8e59d1603df17db8c7c63a92441ac820 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 31 Mar 2009 20:10:48 +1000 Subject: [PATCH] r300: fix stencil clears --- src/mesa/drivers/dri/r300/r300_ioctl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/r300/r300_ioctl.c b/src/mesa/drivers/dri/r300/r300_ioctl.c index 71661eef19c..1314550e544 100644 --- a/src/mesa/drivers/dri/r300/r300_ioctl.c +++ b/src/mesa/drivers/dri/r300/r300_ioctl.c @@ -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); -- 2.30.2