From: Brian Date: Wed, 20 Feb 2008 21:44:15 +0000 (-0700) Subject: gallium: fix bad ptr comparison X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fce61f341faf6a2e1a8497ab963985ddbffa8b0a;p=mesa.git gallium: fix bad ptr comparison --- diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c index 8f31f05e478..295704c05f8 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]); } }