i965: Silence uninitialized variable warning.
authorVinson Lee <vlee@vmware.com>
Sun, 31 Jan 2010 08:44:57 +0000 (00:44 -0800)
committerVinson Lee <vlee@vmware.com>
Sun, 31 Jan 2010 08:44:57 +0000 (00:44 -0800)
src/mesa/drivers/dri/i965/brw_vs_emit.c

index 52cc04fee8747f9a21ef46b3e4afe00f8461d5d6..4f4eef85e8c8536f76f4e5216454a5bc19e45164 100644 (file)
@@ -1438,7 +1438,7 @@ void brw_vs_emit(struct brw_vs_compile *c )
    GLuint insn, if_depth = 0, loop_depth = 0;
    GLuint end_offset = 0;
    struct brw_instruction *end_inst, *last_inst;
-   struct brw_instruction *if_inst[MAX_IF_DEPTH], *loop_inst[MAX_LOOP_DEPTH];
+   struct brw_instruction *if_inst[MAX_IF_DEPTH], *loop_inst[MAX_LOOP_DEPTH] = { 0 };
    const struct brw_indirect stack_index = brw_indirect(0, 0);   
    GLuint index;
    GLuint file;