softpipe: Initialize source in blend_quad.
authorVinson Lee <vlee@vmware.com>
Sun, 13 Dec 2009 02:34:15 +0000 (18:34 -0800)
committerVinson Lee <vlee@vmware.com>
Sun, 13 Dec 2009 02:34:15 +0000 (18:34 -0800)
src/gallium/drivers/softpipe/sp_quad_blend.c

index b1e18805c706bf8912913d60ab6b343863e90d11..43ed4c2494f32d3d0f07c0a5d2a2388812be1a8e 100644 (file)
@@ -258,7 +258,8 @@ blend_quad(struct quad_stage *qs, struct quad_header *quad)
 
    /* loop over colorbuffer outputs */
    for (cbuf = 0; cbuf < softpipe->framebuffer.nr_cbufs; cbuf++) {
-      float source[4][QUAD_SIZE], dest[4][QUAD_SIZE];
+      float source[4][QUAD_SIZE] = { { 0 } };
+      float dest[4][QUAD_SIZE];
       struct softpipe_cached_tile *tile
          = sp_get_cached_tile(softpipe,
                               softpipe->cbuf_cache[cbuf],