projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
729cccb
)
Fix typo in spot attenuation
author
Keith Whitwell
<keith@tungstengraphics.com>
Fri, 10 Jun 2005 13:35:31 +0000
(13:35 +0000)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Fri, 10 Jun 2005 13:35:31 +0000
(13:35 +0000)
src/mesa/tnl/t_vp_build.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_vp_build.c
b/src/mesa/tnl/t_vp_build.c
index 97bf5b6c01db35a43add3438df9e8f075ed0e4b2..8389d1ff98e2dc6e26d4653b6609a66225f05764 100644
(file)
--- 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);