Mesa (master): softpipe: initialize quadColor2 to fix compile warnings
Marek Olšák
mareko at kemper.freedesktop.org
Mon Oct 8 23:15:56 UTC 2012
Module: Mesa
Branch: master
Commit: fd3219962de473fb426a00fa6a3256f1efc1f24c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd3219962de473fb426a00fa6a3256f1efc1f24c
Author: Marek Olšák <maraeo at gmail.com>
Date: Tue Oct 9 01:11:56 2012 +0200
softpipe: initialize quadColor2 to fix compile warnings
---
src/gallium/drivers/softpipe/sp_quad_blend.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/softpipe/sp_quad_blend.c b/src/gallium/drivers/softpipe/sp_quad_blend.c
index 5db787b..aba6730 100644
--- a/src/gallium/drivers/softpipe/sp_quad_blend.c
+++ b/src/gallium/drivers/softpipe/sp_quad_blend.c
@@ -949,7 +949,7 @@ blend_fallback(struct quad_stage *qs,
for (q = 0; q < nr; q++) {
struct quad_header *quad = quads[q];
float (*quadColor)[4];
- float (*quadColor2)[4];
+ float (*quadColor2)[4] = NULL;
float temp_quad_color[TGSI_QUAD_SIZE][4];
const int itx = (quad->input.x0 & (TILE_SIZE-1));
const int ity = (quad->input.y0 & (TILE_SIZE-1));
More information about the mesa-commit
mailing list