summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_fragprog.c
diff options
context:
space:
mode:
authorOliver McFadden <z3ro.geek@gmail.com>2007-03-15 20:55:30 +0000
committerOliver McFadden <z3ro.geek@gmail.com>2007-03-15 20:55:30 +0000
commit0c25d9ab198f79afee23ec1bf8ac61c4cd801d3a (patch)
treee5938f5e0d74d9446481540fe4194bb0eff71aae /src/mesa/drivers/dri/r300/r300_fragprog.c
parent1195caa2745de4d16ddbd46eeb4f527a78c5eb63 (diff)
r300: Added _mesa_copy_instructions.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_fragprog.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_fragprog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_fragprog.c b/src/mesa/drivers/dri/r300/r300_fragprog.c
index e05abdb7c6..251fd26082 100644
--- a/src/mesa/drivers/dri/r300/r300_fragprog.c
+++ b/src/mesa/drivers/dri/r300/r300_fragprog.c
@@ -1853,7 +1853,7 @@ static void insert_wpos(struct gl_program *prog)
fpi[i].SrcReg[2].Swizzle = MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_Z, SWIZZLE_ZERO);
i++;
- _mesa_memcpy(&fpi[i], prog->Instructions, prog->NumInstructions * sizeof(struct prog_instruction));
+ _mesa_copy_instructions (&fpi[i], prog->Instructions, prog->NumInstructions);
free(prog->Instructions);