gallium: fix bad ptr comparison
authorBrian <brian.paul@tungstengraphics.com>
Wed, 20 Feb 2008 21:44:15 +0000 (14:44 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 20 Feb 2008 22:09:44 +0000 (15:09 -0700)
src/gallium/drivers/softpipe/sp_texture.c

index 8f31f05e478feff7ab567e4c02d53c8ff0631572..295704c05f86198f5cf82b4153b9e8723dc345c5 100644 (file)
@@ -136,7 +136,7 @@ softpipe_texture_update(struct pipe_context *pipe,
    struct softpipe_context *softpipe = softpipe_context(pipe);
    uint unit;
    for (unit = 0; unit < PIPE_MAX_SAMPLERS; unit++) {
-      if (softpipe->texture[unit] == texture) {
+      if (softpipe->texture[unit] == softpipe_texture(texture)) {
          sp_flush_tile_cache(softpipe, softpipe->tex_cache[unit]);
       }
    }