projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a38d8d
)
r300: use new program cloning functions
author
Brian Paul
<brianp@vmware.com>
Mon, 15 Feb 2010 01:46:51 +0000
(18:46 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 15 Feb 2010 04:57:14 +0000
(21:57 -0700)
src/mesa/drivers/dri/r300/r300_vertprog.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_vertprog.c
b/src/mesa/drivers/dri/r300/r300_vertprog.c
index e6fa57d439b4b53fb81383368d8c0a56b04853de..3a8d5fb745464a2180ed7d94ad27f33259b90389 100644
(file)
--- 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);