diff options
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 0d40b093e4f..cb310231704 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -2641,9 +2641,9 @@ set_uniform_initializers(struct gl_context *ctx, void ir_to_mesa_visitor::copy_propagate(void) { - ir_to_mesa_instruction *acp[this->next_temp * 4]; + ir_to_mesa_instruction **acp = new ir_to_mesa_instruction *[this->next_temp * 4]; - memset(&acp, 0, sizeof(acp)); + memset(acp, 0, sizeof(acp) * this->next_temp * 4); foreach_iter(exec_list_iterator, iter, this->instructions) { ir_to_mesa_instruction *inst = (ir_to_mesa_instruction *)iter.get(); @@ -2741,6 +2741,8 @@ ir_to_mesa_visitor::copy_propagate(void) } } } + + delete [] acp; } |