From b5e9b0e56231065f6324bbd3c2c35ca53b46ddf8 Mon Sep 17 00:00:00 2001 From: Brian Date: Sat, 21 Apr 2007 13:18:06 -0600 Subject: Remove the !rb->Data check that was added a few months ago. Was changed while debugging #7205. Broke the shadowtext demo. Revisit this if the problem w/ bug 7205 returns... --- src/mesa/swrast/s_stencil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/swrast/s_stencil.c') diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c index 2b898486b2..89991fad02 100644 --- a/src/mesa/swrast/s_stencil.c +++ b/src/mesa/swrast/s_stencil.c @@ -1152,7 +1152,7 @@ _swrast_clear_stencil_buffer( GLcontext *ctx, struct gl_renderbuffer *rb ) const GLuint stencilMax = (1 << stencilBits) - 1; GLint x, y, width, height; - if (!rb || mask == 0 || !rb->Data) + if (!rb || mask == 0) return; ASSERT(rb->DataType == GL_UNSIGNED_BYTE || -- cgit v1.2.3