From 68afe8f6851f4aa35383bb68273b49153bc2cd65 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 22 Nov 2010 09:05:31 -0700 Subject: [PATCH] swrast: init alpha value to 1.0 in opt_sample_rgb_2d() (cherry picked from commit 6a0255122a7d7c0aa09bceacda90a5cea67d5ee2) --- src/mesa/swrast/s_texfilter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c index 198f0e2cdeb..28063e0e260 100644 --- a/src/mesa/swrast/s_texfilter.c +++ b/src/mesa/swrast/s_texfilter.c @@ -1368,6 +1368,7 @@ opt_sample_rgb_2d(GLcontext *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; } }