projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d39e82
)
changed a renderbuffer check
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 22 Sep 2005 04:52:45 +0000
(
04:52
+0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 22 Sep 2005 04:52:45 +0000
(
04:52
+0000)
src/mesa/swrast/s_stencil.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_stencil.c
b/src/mesa/swrast/s_stencil.c
index f0d8bef39c2603330a66a284cee9236f908ad3c9..238beddc358f41d42fbfa7d1c1674b4e5e5759fa 100644
(file)
--- a/
src/mesa/swrast/s_stencil.c
+++ b/
src/mesa/swrast/s_stencil.c
@@
-1173,8
+1173,7
@@
_swrast_clear_stencil_buffer( GLcontext *ctx, struct gl_renderbuffer *rb )
}
else {
/* no bit masking */
- if (width == rb->Width &&
- rb->InternalFormat == GL_STENCIL_INDEX8_EXT) {
+ if (width == rb->Width && rb->DataType == GL_UNSIGNED_BYTE) {
/* optimized case */
/* XXX bottom-to-op raster assumed! */
GLubyte *stencil = rb->GetPointer(ctx, rb, x, y);