From 17c2f56dc3f2f58ba89d8e305e7d9b423e3cae16 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 17 Oct 2007 17:22:06 -0600 Subject: fix interpolation bug in nearest-image/linear-mipmap filtering --- src/mesa/pipe/softpipe/sp_tex_sample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/pipe/softpipe') diff --git a/src/mesa/pipe/softpipe/sp_tex_sample.c b/src/mesa/pipe/softpipe/sp_tex_sample.c index 7add74e98a..64cb94d944 100644 --- a/src/mesa/pipe/softpipe/sp_tex_sample.c +++ b/src/mesa/pipe/softpipe/sp_tex_sample.c @@ -668,7 +668,7 @@ sp_get_samples_2d_common(struct tgsi_sampler *sampler, y = y / 2; get_texel(sampler, faces[j], level1, x, y, 0, rgba2, j); for (c = 0; c < NUM_CHANNELS; c++) { - rgba[c][j] = LERP(levelBlend, rgba2[c][j], rgba[c][j]); + rgba[c][j] = LERP(levelBlend, rgba[c][j], rgba2[c][j]); } } } -- cgit v1.2.3