mesa: fix an error in uniform arrays in row calculating.
authorJian Zhao <jian.j.zhao@intel.com>
Wed, 5 Jan 2011 02:41:20 +0000 (10:41 +0800)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Jan 2011 14:22:18 +0000 (07:22 -0700)
commit2a7380e9c3a040356599a5b7740aa24e067fc1f5
tree7d227beaf273d83e3e7272a675ae64a14a96e355
parentdb61b9ce39bccc43140357652ceb78baaf2aea44
mesa: fix an error in uniform arrays in row calculating.

Fix the error in uniform row calculating, it may alloc one line
more which may cause out of range on memory usage, sometimes program
aborted when free the memory.

NOTE: This is a candidate for 7.9 and 7.10 branches.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/main/uniforms.c