From: Brian Paul Date: Mon, 15 Feb 2010 01:46:56 +0000 (-0700) Subject: r600: use new program cloning functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=630b83be84f0bd9ce15cf9f09250a462bac2aa8b;p=mesa.git r600: use new program cloning functions --- diff --git a/src/mesa/drivers/dri/r600/r700_vertprog.c b/src/mesa/drivers/dri/r600/r700_vertprog.c index 618f7e1be1c..46481cdff4e 100644 --- a/src/mesa/drivers/dri/r600/r700_vertprog.c +++ b/src/mesa/drivers/dri/r600/r700_vertprog.c @@ -308,7 +308,7 @@ struct r700_vertex_program* r700TranslateVertexShader(GLcontext *ctx, unsigned int i; vp = _mesa_calloc(sizeof(*vp)); - vp->mesa_program = (struct gl_vertex_program *)_mesa_clone_program(ctx, &mesa_vp->Base); + vp->mesa_program = _mesa_clone_vertex_program(ctx, mesa_vp); if (mesa_vp->IsPositionInvariant) {