summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2009-03-31 20:10:48 +1000
committerDave Airlie <[email protected]>2009-03-31 20:10:48 +1000
commit5c7fc1cb8e59d1603df17db8c7c63a92441ac820 (patch)
tree364ae59a4f2daad5d953267cb52bf5e2d223ef35 /src
parent226c876a52c1bd51d5f16ff58df5c4144355e2a3 (diff)
r300: fix stencil clears
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r300/r300_ioctl.c3
1 files changed, 3 insertions, 0 deletions
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);