From 43125694109b01b9d99ed73ca340fcf19b831cd5 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 13 Dec 2010 17:25:29 -0700 Subject: st/mesa: use st_fragment_program() instead of cast --- src/mesa/state_tracker/st_program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa') 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) { -- cgit v1.2.3