From ba151a333be7a23266b23ee6f65669bb19221546 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 24 Jan 2012 13:32:13 -0700 Subject: swrast: fix uninitialized variable warning --- src/mesa/swrast/s_span.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index 8fbd32276c..7ab60b1e51 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -1103,7 +1103,7 @@ _swrast_put_row(struct gl_context *ctx, struct gl_renderbuffer *rb, /* We can't pass a 'mask' array to the _mesa_pack_rgba_row() functions * so look for runs where mask=1... */ - runLen = 0; + runLen = runStart = 0; for (i = 0; i < count; i++) { if (mask[i]) { if (runLen == 0) -- cgit v1.2.3