Mesa (mesa_7_6_branch): swrast: Silence uninitialized variable warnings in s_triangle.c

Vinson Lee vlee at kemper.freedesktop.org
Sun Dec 13 07:48:17 UTC 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 555dc25c4c5a0991fb6846ccc263a195717512de
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=555dc25c4c5a0991fb6846ccc263a195717512de

Author: Vinson Lee <vlee at vmware.com>
Date:   Sat Dec 12 23:47:32 2009 -0800

swrast: Silence uninitialized variable warnings in s_triangle.c

---

 src/mesa/swrast/s_triangle.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/mesa/swrast/s_triangle.c b/src/mesa/swrast/s_triangle.c
index 1ab0e19..a65b7b3 100644
--- a/src/mesa/swrast/s_triangle.c
+++ b/src/mesa/swrast/s_triangle.c
@@ -540,6 +540,9 @@ affine_span(GLcontext *ctx, SWspan *span,
    info.format = obj->Image[0][b]->_BaseFormat;				\
    info.filter = obj->MinFilter;					\
    info.envmode = unit->EnvMode;					\
+   info.er = 0;					\
+   info.eg = 0;					\
+   info.eb = 0;					\
    span.arrayMask |= SPAN_RGBA;						\
 									\
    if (info.envmode == GL_BLEND) {					\
@@ -809,6 +812,9 @@ fast_persp_span(GLcontext *ctx, SWspan *span,
    info.format = obj->Image[0][b]->_BaseFormat;				\
    info.filter = obj->MinFilter;					\
    info.envmode = unit->EnvMode;					\
+   info.er = 0;					\
+   info.eg = 0;					\
+   info.eb = 0;					\
 									\
    if (info.envmode == GL_BLEND) {					\
       /* potential off-by-one error here? (1.0f -> 2048 -> 0) */	\




More information about the mesa-commit mailing list