softpipe: simplify an assertion
authorBrian Paul <brianp@vmware.com>
Sat, 7 Feb 2009 20:03:24 +0000 (13:03 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 7 Feb 2009 20:03:24 +0000 (13:03 -0700)
src/gallium/drivers/softpipe/sp_texture.c

index 7af839819348f9c7bbb9d97cb3c18e9bcb2501c3..3eed0d0d2934d024574b88dd7c922a26b7b03f32 100644 (file)
@@ -270,7 +270,7 @@ softpipe_tex_surface_release(struct pipe_screen *screen,
     * needed post-processing to put them into hardware layout, this is
     * where it would happen.  For softpipe, nothing to do.
     */
-   assert ((*s)->texture);
+   assert(surf->texture);
    if (--surf->refcount == 0) {
       pipe_texture_reference(&surf->texture, NULL);
       FREE(surf);