projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2605d5
)
fix incorrect register in get_eye_normal() for rescale_normals case
author
Brian
<brian.paul@tungstengraphics.com>
Mon, 15 Oct 2007 23:59:16 +0000
(17:59 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Mon, 15 Oct 2007 23:59:16 +0000
(17:59 -0600)
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 e7caa2fc1db2dfbe606c101b7581985a07aef634..2c0883d0b094925b2934238c1ad94ad8de1a286d 100644
(file)
--- 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) {