diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-09-22 04:52:45 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2005-09-22 04:52:45 +0000 |
commit | 63016507d7916231d139d7e3816b7c1b3809fa87 (patch) | |
tree | 34ca766b467a920cb2d81f9dcd424a9d4b46aa93 /src | |
parent | 7d39e8297676841dbc9d096e62752ee4c5e04783 (diff) |
changed a renderbuffer check
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/swrast/s_stencil.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c index f0d8bef39c..238beddc35 100644 --- 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); |