Remove the !rb->Data check that was added a few months ago.
authorBrian <brian@yutani.localnet.net>
Sat, 21 Apr 2007 19:18:06 +0000 (13:18 -0600)
committerBrian <brian@yutani.localnet.net>
Sat, 21 Apr 2007 19:18:06 +0000 (13:18 -0600)
Was changed while debugging #7205.  Broke the shadowtext demo.  Revisit this
if the problem w/ bug 7205 returns...

src/mesa/swrast/s_depth.c
src/mesa/swrast/s_stencil.c

index dde2b1db83a9b020564cecdce732499ac3268f3d..408174c990fb165941a8ee0df4015852e42347b5 100644 (file)
@@ -1350,7 +1350,7 @@ _swrast_clear_depth_buffer( GLcontext *ctx, struct gl_renderbuffer *rb )
    GLuint clearValue;
    GLint x, y, width, height;
 
-   if (!rb || !ctx->Depth.Mask || !rb->Data) {
+   if (!rb || !ctx->Depth.Mask) {
       /* no depth buffer, or writing to it is disabled */
       return;
    }
index 2b898486b22c6c0f80b8fd31b4b4aa06c92cc460..89991fad02d6a4d605d922efecc729fa121a5ddf 100644 (file)
@@ -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 ||