st/mesa: use st_fragment_program() instead of cast

This commit is contained in:
Brian Paul 2010-12-13 17:25:29 -07:00
parent 6c669d0c07
commit 4312569410
1 changed files with 2 additions and 2 deletions

View File

@ -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) {