mesa: make sure all lighting tables are updated before the computation
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Tue, 15 Nov 2011 07:40:53 +0000 (15:40 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 16 Nov 2011 03:20:49 +0000 (11:20 +0800)
commit099c4e372df0acb2bda61ccf9e6538b3d8349ea3
tree0dac9aabe077bfece9296f3ca8a6e1940d4bf6a2
parentd4df6318a1014ad99149fd13d0d90ef6c0c0fb31
mesa: make sure all lighting tables are updated before the computation

Make sure all lighting tables are updated before using the table to
calculate something, say using _SpotExpTable to calculate
_VP_inf_spot_attenuation.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/light.c