projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee5b7f0
)
Use _mesa_copy_instructions rather than memcpy in _mesa_insert_mvp_code.
author
Oliver McFadden
<z3ro.geek@gmail.com>
Sun, 18 Mar 2007 07:21:21 +0000
(07:21 +0000)
committer
Oliver McFadden
<z3ro.geek@gmail.com>
Sun, 18 Mar 2007 07:35:45 +0000
(07:35 +0000)
src/mesa/shader/programopt.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/programopt.c
b/src/mesa/shader/programopt.c
index dca44c853d8af04850220e6148d8fcdfc0f0ba43..fed8e5b758be357fd36dad1e1f2072480e30e7d4 100644
(file)
--- a/
src/mesa/shader/programopt.c
+++ b/
src/mesa/shader/programopt.c
@@
-100,8
+100,7
@@
_mesa_insert_mvp_code(GLcontext *ctx, struct gl_vertex_program *vprog)
}
/* Append original instructions after new instructions */
- _mesa_memcpy(newInst + 4, vprog->Base.Instructions,
- origLen * sizeof(struct prog_instruction));
+ _mesa_copy_instructions (newInst + 4, vprog->Base.Instructions, origLen);
/* free old instructions */
_mesa_free(vprog->Base.Instructions);