From: Brian Paul Date: Mon, 22 Nov 2010 16:04:13 +0000 (-0700) Subject: swrast: init alpha value to 1.0 in opt_sample_rgb_2d() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a0255122a7d7c0aa09bceacda90a5cea67d5ee2;p=mesa.git swrast: init alpha value to 1.0 in opt_sample_rgb_2d() --- diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c index ec281776d0d..539d878ddb4 100644 --- a/src/mesa/swrast/s_texfilter.c +++ b/src/mesa/swrast/s_texfilter.c @@ -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; } }