summaryrefslogtreecommitdiff
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-15 17:59:16 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-15 17:59:16 -0600
commitcd54414b75476b793867b863da0cbb9f079f613c (patch)
treef091ad1d6b6b1c707dac85053306914ef7a95459 /src/mesa/tnl
parentb2605d5f803f51f216fd815374b59dfc616f7e13 (diff)
fix incorrect register in get_eye_normal() for rescale_normals case
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_vp_build.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c
index e7caa2fc1d..2c0883d0b0 100644
--- a/src/mesa/tnl/t_vp_build.c
+++ b/src/mesa/tnl/t_vp_build.c
@@ -693,7 +693,7 @@ static struct ureg get_eye_normal( struct tnl_program *p )
struct ureg rescale = register_param2(p, STATE_INTERNAL,
STATE_NORMAL_SCALE);
- emit_op2( p, OPCODE_MUL, p->eye_normal, 0, normal,
+ emit_op2( p, OPCODE_MUL, p->eye_normal, 0, p->eye_normal,
swizzle1(rescale, X));
}
}
@@ -1122,7 +1122,6 @@ static void build_fog( struct tnl_program *p )
struct ureg params = register_param2(p, STATE_INTERNAL,
STATE_FOG_PARAMS_OPTIMIZED);
struct ureg tmp = get_temp(p);
-
GLboolean useabs = (p->state->fog_mode != FOG_EXP2);
if (useabs) {