From cfe984dbd0c478906785dbf8a9430504173ae952 Mon Sep 17 00:00:00 2001 From: Oliver McFadden Date: Sun, 18 Mar 2007 07:21:21 +0000 Subject: [PATCH] Use _mesa_copy_instructions rather than memcpy in _mesa_insert_mvp_code. --- src/mesa/shader/programopt.c | 3 +-- 1 file changed, 1 insertion(+), 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); -- 2.30.2