swrast: remove bogus assertion
authorBrian Paul <brianp@vmware.com>
Fri, 11 Nov 2011 00:12:15 +0000 (17:12 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 11 Nov 2011 14:12:55 +0000 (07:12 -0700)
It would fail for images that were never allocated (and wouldn't be
used during rendering).

src/mesa/swrast/s_texture.c

index ba67c6fa417caa71a6affbce4a32b9d892e5b193..76a31eeae73cd79a3fcb2e4b1259a74bcc6bd9b9 100644 (file)
@@ -241,7 +241,6 @@ _swrast_map_texture(struct gl_context *ctx, struct gl_texture_object *texObj)
 
             /* XXX we'll eventually call _swrast_map_teximage() here */
             swImage->Data = swImage->Buffer;
-            assert(swImage->Buffer);
          }
       }
    }