summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-24 12:08:38 -0600
committerBrian <[email protected]>2007-08-24 12:10:31 -0600
commit57394f344653f4eaec2de521a9a300a69e3bc71d (patch)
tree52c99166e3ecbefa70857b6855a23e862c31bf69 /src/mesa
parent6ef1bdbdaaf1d30d891475f3dbf27ec791ff40eb (diff)
fix a tracking of changed lighting state
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_atom_vs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_vs.c b/src/mesa/state_tracker/st_atom_vs.c
index 4c83a8c5c1e..7420a495206 100644
--- a/src/mesa/state_tracker/st_atom_vs.c
+++ b/src/mesa/state_tracker/st_atom_vs.c
@@ -31,6 +31,7 @@
*/
#include "shader/prog_parameter.h"
+#include "shader/prog_print.h"
#include "tnl/t_vp_build.h"
#include "pipe/p_context.h"
@@ -104,6 +105,7 @@ static void update_vs( struct st_context *st )
/* update constants */
if (vp && params) {
_mesa_load_state_parameters(st->ctx, params);
+ /*_mesa_print_parameter_list(params);*/
update_vs_constants(st, params);
}
@@ -131,7 +133,10 @@ static void update_vs( struct st_context *st )
const struct st_tracked_state st_update_vs = {
.dirty = {
- .mesa = _NEW_PROGRAM | _NEW_MODELVIEW | _NEW_PROJECTION, /*XXX MORE*/
+ .mesa = (_NEW_PROGRAM |
+ _NEW_MODELVIEW |
+ _NEW_PROJECTION |
+ _NEW_LIGHT), /*XXX MORE?*/
.st = ST_NEW_VERTEX_PROGRAM,
},
.update = update_vs