Mesa (master): swrast: init alpha value to 1.0 in opt_sample_rgb_2d()

Brian Paul brianp at kemper.freedesktop.org
Mon Nov 22 16:04:36 UTC 2010


Module: Mesa
Branch: master
Commit: 6a0255122a7d7c0aa09bceacda90a5cea67d5ee2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a0255122a7d7c0aa09bceacda90a5cea67d5ee2

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Nov 22 09:04:13 2010 -0700

swrast: init alpha value to 1.0 in opt_sample_rgb_2d()

---

 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 ec28177..539d878 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;
    }
 }
 




More information about the mesa-commit mailing list