projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
226c876
)
r300: fix stencil clears
author
Dave Airlie
<airlied@redhat.com>
Tue, 31 Mar 2009 10:10:48 +0000
(20:10 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 31 Mar 2009 10:10:48 +0000
(20:10 +1000)
src/mesa/drivers/dri/r300/r300_ioctl.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_ioctl.c
b/src/mesa/drivers/dri/r300/r300_ioctl.c
index 71661eef19c81951057cd48e51b07b7f6a0e3afd..1314550e54455417c3ce95b98dabfd17b043a6d7 100644
(file)
--- 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);