r600: use new program cloning functions
authorBrian Paul <brianp@vmware.com>
Mon, 15 Feb 2010 01:46:56 +0000 (18:46 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 15 Feb 2010 04:57:14 +0000 (21:57 -0700)
src/mesa/drivers/dri/r600/r700_vertprog.c

index 618f7e1..46481cd 100644 (file)
@@ -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)
        {