summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vp_build.c
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2007-02-14 16:38:32 +0100
committerRoland Scheidegger <[email protected]>2007-02-14 16:38:32 +0100
commit99dfca1e7fb32157135511bded07376ebb25acb3 (patch)
tree2ad065d6bd50fddbe242492e900aad17e8be3d6e /src/mesa/tnl/t_vp_build.c
parentbc82b44db9dbb6ea0f02c2a9a430e8d402c85bd3 (diff)
fix stupid bug in the optimized per-vertex fog generation code
Diffstat (limited to 'src/mesa/tnl/t_vp_build.c')
-rw-r--r--src/mesa/tnl/t_vp_build.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c
index 0b6f506f4e5..81266f3c8b4 100644
--- a/src/mesa/tnl/t_vp_build.c
+++ b/src/mesa/tnl/t_vp_build.c
@@ -1102,7 +1102,8 @@ static void build_fog( struct tnl_program *p )
}
if (p->state->tnl_do_vertex_fog) {
- struct ureg params = register_param1(p, STATE_FOG_PARAMS_OPTIMIZED);
+ struct ureg params = register_param2(p, STATE_INTERNAL,
+ STATE_FOG_PARAMS_OPTIMIZED);
struct ureg tmp = get_temp(p);
switch (p->state->fog_mode) {