diff options
author | Keith Whitwell <[email protected]> | 2005-06-10 13:35:31 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-06-10 13:35:31 +0000 |
commit | 6c1948d593e0be6ddd49f73cb3966e679eb83c37 (patch) | |
tree | 6be476cdb5c7321efb03a1ad3761c927052ec5e8 /src | |
parent | 729cccba5d20e3b34e7168ffff7515f52c72c26e (diff) |
Fix typo in spot attenuation
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/tnl/t_vp_build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c index 97bf5b6c01d..8389d1ff98e 100644 --- a/src/mesa/tnl/t_vp_build.c +++ b/src/mesa/tnl/t_vp_build.c @@ -805,7 +805,7 @@ static struct ureg calculate_light_attenuation( struct tnl_program *p, struct ureg slt = get_temp(p); emit_normalize_vec3( p, spot, spot_dir ); /* XXX: precompute! */ - emit_op2(p, VP_OPCODE_DP3, spot, 0, negate(VPpli), spot_dir); + emit_op2(p, VP_OPCODE_DP3, spot, 0, negate(VPpli), spot); emit_op2(p, VP_OPCODE_SLT, slt, 0, swizzle1(spot_dir,W), spot); emit_op2(p, VP_OPCODE_POW, spot, 0, spot, swizzle1(attenuation, W)); emit_op2(p, VP_OPCODE_MUL, att, 0, slt, spot); |