summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-02-20 14:44:15 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-02-20 15:09:44 -0700
commitfce61f341faf6a2e1a8497ab963985ddbffa8b0a (patch)
tree50be42433ad66c750e9c5fb029d3ff6c635d63c9 /src/gallium/drivers
parentfd4bdd020a9e1999b87d553b50151405c054a619 (diff)
gallium: fix bad ptr comparison
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/softpipe/sp_texture.c2
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 8f31f05e47..295704c05f 100644
--- a/src/gallium/drivers/softpipe/sp_texture.c
+++ b/src/gallium/drivers/softpipe/sp_texture.c
@@ -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]);
}
}