fix st_use_program()
authorBrian <brian.paul@tungstengraphics.com>
Fri, 28 Sep 2007 22:19:51 +0000 (16:19 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 28 Sep 2007 22:19:51 +0000 (16:19 -0600)
src/mesa/state_tracker/st_cb_program.c

index 5c00dd1..8df8b26 100644 (file)
@@ -37,6 +37,7 @@
 #include "shader/prog_parameter.h"
 #include "shader/program.h"
 #include "shader/programopt.h"
+#include "shader/shader_api.h"
 
 #include "st_context.h"
 #include "st_program.h"
@@ -70,6 +71,8 @@ static void st_use_program( GLcontext *ctx,
    struct st_context *st = st_context(ctx);
 
    st->dirty.st |= ST_NEW_SHADER;
+
+   _mesa_use_program(ctx, program);
 }