OSDN Git Service

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 ba67c6f..76a31ee 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);
          }
       }
    }