Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
[mesa.git] / src / mesa / drivers / dri / i810 / i810tris.c
index 0d5f5d93693b5ec205e5883a26cc42d7c69ba51b..213ba541cee24a5da6fab266c47b240430e585bf 100644 (file)
@@ -30,11 +30,11 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
  *   Keith Whitwell <keith@tungstengraphics.com>
  */
 
-#include "glheader.h"
-#include "mtypes.h"
-#include "macros.h"
-#include "enums.h"
-#include "colormac.h"
+#include "main/glheader.h"
+#include "main/mtypes.h"
+#include "main/macros.h"
+#include "main/enums.h"
+#include "main/colormac.h"
 
 #include "swrast/swrast.h"
 #include "swrast_setup/swrast_setup.h"
@@ -270,7 +270,8 @@ do {                                                        \
 
 #define LOCAL_VARS(n)                                                  \
    i810ContextPtr imesa = I810_CONTEXT(ctx);                           \
-   GLuint color[n], spec[n];                                           \
+   GLuint color[n] = { 0 };                                            \
+   GLuint spec[n] = { 0 };                                             \
    GLuint coloroffset = (imesa->vertex_size == 4 ? 3 : 4);             \
    GLboolean havespec = (imesa->vertex_size > 4);                      \
    (void) color; (void) spec; (void) coloroffset; (void) havespec;