swrast: Silence uninitialized variable warnings in s_triangle.c
authorVinson Lee <vlee@vmware.com>
Sun, 13 Dec 2009 07:47:32 +0000 (23:47 -0800)
committerVinson Lee <vlee@vmware.com>
Sun, 13 Dec 2009 07:47:32 +0000 (23:47 -0800)
src/mesa/swrast/s_triangle.c

index 1ab0e19f922860013e6aae57381dea6db7d88e51..a65b7b3e228ec4e5cb4e8027a811d48a9652015b 100644 (file)
@@ -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) */       \