summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_program.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/state_tracker/st_program.c')
-rw-r--r--src/mesa/state_tracker/st_program.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index f28890e7b32..0e67fcca17b 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -417,7 +417,7 @@ st_translate_fragment_program(struct st_context *st,
&fp, &varient->bitmap_sampler);
varient->parameters = _mesa_clone_parameter_list(fp->Base.Parameters);
- stfp = (struct st_fragment_program *) fp;
+ stfp = st_fragment_program(fp);
}
else if (key->drawpixels) {
/* glDrawPixels drawing */
@@ -432,7 +432,7 @@ st_translate_fragment_program(struct st_context *st,
st_make_drawpix_fragment_program(st, &stfp->Base, &fp);
varient->parameters = _mesa_clone_parameter_list(fp->Base.Parameters);
}
- stfp = (struct st_fragment_program *) fp;
+ stfp = st_fragment_program(fp);
}
if (!stfp->tgsi.tokens) {