summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-11-22 09:04:13 -0700
committerBrian Paul <brianp@vmware.com>2010-11-22 09:04:13 -0700
commit6a0255122a7d7c0aa09bceacda90a5cea67d5ee2 (patch)
treea2c98791a33cb127b2c84ca8dd34f6c64ef27684
parent9aa089eac05ebefafb6610b4a7e209b2fd1e93f6 (diff)
swrast: init alpha value to 1.0 in opt_sample_rgb_2d()
-rw-r--r--src/mesa/swrast/s_texfilter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c
index ec281776d0..539d878ddb 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;
}
}