gallium: Fix build on Windows.
authorMichal Krol <michal@tungstengraphics.com>
Wed, 20 Feb 2008 21:25:18 +0000 (22:25 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 22 Feb 2008 15:51:19 +0000 (00:51 +0900)
src/gallium/drivers/softpipe/sp_texture.c

index 6ba0f09e0a1269b00b7bec6eb52b6a2aa58d1a26..3d26e8ca6697375d02538fdc35263483e013f381 100644 (file)
@@ -139,7 +139,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]->base == texture) {
          sp_flush_tile_cache(softpipe, softpipe->tex_cache[unit]);
       }
    }