summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_program.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_program.c b/src/mesa/state_tracker/st_cb_program.c
index 5c00dd1ae1c..8df8b263d34 100644
--- a/src/mesa/state_tracker/st_cb_program.c
+++ b/src/mesa/state_tracker/st_cb_program.c
@@ -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);
}