Mesa (7.9): swrast: init alpha value to 1.0 in opt_sample_rgb_2d()
Brian Paul
brianp at kemper.freedesktop.org
Mon Nov 22 16:05:43 UTC 2010
Module: Mesa
Branch: 7.9
Commit: 68afe8f6851f4aa35383bb68273b49153bc2cd65
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=68afe8f6851f4aa35383bb68273b49153bc2cd65
Author: Brian Paul <brianp at vmware.com>
Date: Mon Nov 22 09:05:31 2010 -0700
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 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c
index 198f0e2..28063e0 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;
}
}
More information about the mesa-commit
mailing list