summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-02-14 18:46:51 -0700
committerBrian Paul <brianp@vmware.com>2010-02-14 21:57:14 -0700
commit79d4954f4f414d4ad047c17e684d566c0cd7442f (patch)
tree967585004ca40dbd226126d15fdc9f8c8aa5dd08
parent7a38d8d9a52a69884e73bc7dc7a43c58453b2c1a (diff)
r300: use new program cloning functions
-rw-r--r--src/mesa/drivers/dri/r300/r300_vertprog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_vertprog.c b/src/mesa/drivers/dri/r300/r300_vertprog.c
index e6fa57d439..3a8d5fb745 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);