swrast: init alpha value to 1.0 in opt_sample_rgb_2d()
authorBrian Paul <brianp@vmware.com>
Mon, 22 Nov 2010 16:04:13 +0000 (09:04 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 22 Nov 2010 16:04:13 +0000 (09:04 -0700)
src/mesa/swrast/s_texfilter.c

index ec281776d0d1f998fffc9a36bd8d7cdf464fa7ac..539d878ddb46483ca497bfd877288029fb83a56d 100644 (file)
@@ -1371,6 +1371,7 @@ opt_sample_rgb_2d(struct gl_context *ctx,
       rgba[k][RCOMP] = UBYTE_TO_FLOAT(texel[2]);
       rgba[k][GCOMP] = UBYTE_TO_FLOAT(texel[1]);
       rgba[k][BCOMP] = UBYTE_TO_FLOAT(texel[0]);
+      rgba[k][ACOMP] = 1.0F;
    }
 }