OSDN Git Service

swrast: fix uninitialized variable warning
authorBrian Paul <brianp@vmware.com>
Tue, 24 Jan 2012 20:32:13 +0000 (13:32 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 28 Jan 2012 02:02:42 +0000 (18:02 -0800)
(cherry picked from commit ba151a333be7a23266b23ee6f65669bb19221546)

src/mesa/swrast/s_span.c

index 819fe4b..8ecc3f9 100644 (file)
@@ -1084,7 +1084,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)