Mesa (gallium-0.2): softpipe: simplify an assertion

Brian Paul brianp at kemper.freedesktop.org
Sat Feb 7 20:05:52 UTC 2009


Module: Mesa
Branch: gallium-0.2
Commit: 2473ded88684aed33de5ba6494ac4ce8cf7e2226
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2473ded88684aed33de5ba6494ac4ce8cf7e2226

Author: Brian Paul <brianp at vmware.com>
Date:   Sat Feb  7 13:03:24 2009 -0700

softpipe: simplify an assertion

---

 src/gallium/drivers/softpipe/sp_texture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c
index 7af8398..3eed0d0 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);




More information about the mesa-commit mailing list