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 618f7e1be1c872b3f9185fd83e108a9b59455751..46481cdff4e02b1ea63ac6b2f777f15364c66eff 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)
        {