From: Brian Paul Date: Mon, 15 Feb 2010 01:46:51 +0000 (-0700) Subject: r300: use new program cloning functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79d4954f4f414d4ad047c17e684d566c0cd7442f;p=mesa.git r300: use new program cloning functions --- diff --git a/src/mesa/drivers/dri/r300/r300_vertprog.c b/src/mesa/drivers/dri/r300/r300_vertprog.c index e6fa57d439b..3a8d5fb7454 100644 --- a/src/mesa/drivers/dri/r300/r300_vertprog.c +++ b/src/mesa/drivers/dri/r300/r300_vertprog.c @@ -234,7 +234,7 @@ static struct r300_vertex_program *build_program(GLcontext *ctx, struct r300_vertex_program_compiler compiler; vp = _mesa_calloc(sizeof(*vp)); - vp->Base = (struct gl_vertex_program *) _mesa_clone_program(ctx, &mesa_vp->Base); + vp->Base = _mesa_clone_vertex_program(ctx, mesa_vp); _mesa_memcpy(&vp->key, wanted_key, sizeof(vp->key)); rc_init(&compiler.Base);