summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/programopt.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-03-22 09:11:26 -0600
committerBrian <[email protected]>2007-03-22 09:11:26 -0600
commit12229f119d754715e0315846fdd8d6e9213e8edf (patch)
tree53f9f61f76f80685f6cb6ad9e8297292a4be7a4f /src/mesa/shader/programopt.c
parent1bf81e3c5d65b636658d11072f4f027f5c499396 (diff)
use _mesa_copy_instructions()
Diffstat (limited to 'src/mesa/shader/programopt.c')
-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 d427ee38f81..f1d8ce30654 100644
--- a/src/mesa/shader/programopt.c
+++ b/src/mesa/shader/programopt.c
@@ -150,8 +150,7 @@ _mesa_append_fog_code(GLcontext *ctx, struct gl_fragment_program *fprog)
}
/* Copy orig instructions into new instruction buffer */
- _mesa_memcpy(newInst, fprog->Base.Instructions,
- origLen * sizeof(struct prog_instruction));
+ _mesa_copy_instructions(newInst, fprog->Base.Instructions, origLen);
/* PARAM fogParamsRefOpt = internal optimized fog params; */
fogPRefOpt