swrast: fix uninitialized variable warning

(cherry picked from commit ba151a333b)
This commit is contained in:
Brian Paul 2012-01-24 13:32:13 -07:00 committed by Ian Romanick
parent 4f8b00d8ef
commit 93d5799e8b

View 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 /* We can't pass a 'mask' array to the _mesa_pack_rgba_row() functions
* so look for runs where mask=1... * so look for runs where mask=1...
*/ */
runLen = 0; runLen = runStart = 0;
for (i = 0; i < count; i++) { for (i = 0; i < count; i++) {
if (mask[i]) { if (mask[i]) {
if (runLen == 0) if (runLen == 0)