fix interpolation bug in nearest-image/linear-mipmap filtering
authorBrian <brian.paul@tungstengraphics.com>
Wed, 17 Oct 2007 23:22:06 +0000 (17:22 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 17 Oct 2007 23:22:06 +0000 (17:22 -0600)
src/mesa/pipe/softpipe/sp_tex_sample.c

index 7add74e98a68f4213e2c1a1e526315cc9efd8195..64cb94d94419f00a1e34b1e639dc1fbb3624f809 100644 (file)
@@ -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]);
             }
          }
       }