From: Brian Paul Date: Sat, 7 Feb 2009 20:03:24 +0000 (-0700) Subject: softpipe: simplify an assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2473ded88684aed33de5ba6494ac4ce8cf7e2226;p=mesa.git softpipe: simplify an assertion --- diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c index 7af83981934..3eed0d0d293 100644 --- a/src/gallium/drivers/softpipe/sp_texture.c +++ b/src/gallium/drivers/softpipe/sp_texture.c @@ -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);