fix stupid bug in the optimized per-vertex fog generation code
authorRoland Scheidegger <sroland@tungstengraphics.com>
Wed, 14 Feb 2007 15:38:32 +0000 (16:38 +0100)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Wed, 14 Feb 2007 15:38:32 +0000 (16:38 +0100)
src/mesa/tnl/t_vp_build.c

index 0b6f506f4e5e06b51f105c91978c2ff3cbf7199b..81266f3c8b430710975fe99d6f0b16803f6979b3 100644 (file)
@@ -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) {