diff options
author | Brian Paul <[email protected]> | 2010-12-13 17:25:29 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-12-13 17:25:29 -0700 |
commit | 43125694109b01b9d99ed73ca340fcf19b831cd5 (patch) | |
tree | 4cef587f41442e0d70916c6fe403d9840e5f8b08 /src | |
parent | 6c669d0c0766c27c58dd3ea7c3bd18b47a922aea (diff) |
st/mesa: use st_fragment_program() instead of cast
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 4 |
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) { |