From 63016507d7916231d139d7e3816b7c1b3809fa87 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 22 Sep 2005 04:52:45 +0000 Subject: [PATCH] changed a renderbuffer check --- src/mesa/swrast/s_stencil.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c index f0d8bef39c2..238beddc358 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); -- 2.30.2