From: Brian Date: Fri, 28 Sep 2007 22:19:51 +0000 (-0600) Subject: fix st_use_program() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78876bf61c6f6e3c3fec471431f91307f51c107a;p=mesa.git fix st_use_program() --- 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); }