aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOliver McFadden <[email protected]>2007-03-18 07:21:21 +0000
committerOliver McFadden <[email protected]>2007-03-18 07:35:45 +0000
commitcfe984dbd0c478906785dbf8a9430504173ae952 (patch)
treed20e075e0ea23aee55126bb69086d7da1f73034a /src
parentee5b7f0574c6c5bce9ab75a2825f1fe089a57fa5 (diff)
Use _mesa_copy_instructions rather than memcpy in _mesa_insert_mvp_code.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/programopt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/shader/programopt.c b/src/mesa/shader/programopt.c
index dca44c853d8..fed8e5b758b 100644
--- 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);