From: Brian Date: Wed, 17 Oct 2007 23:22:06 +0000 (-0600) Subject: fix interpolation bug in nearest-image/linear-mipmap filtering X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17c2f56dc3f2f58ba89d8e305e7d9b423e3cae16;p=mesa.git fix interpolation bug in nearest-image/linear-mipmap filtering --- diff --git a/src/mesa/pipe/softpipe/sp_tex_sample.c b/src/mesa/pipe/softpipe/sp_tex_sample.c index 7add74e98a6..64cb94d9441 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]); } } }