Browse Source

Use _mesa_copy_instructions rather than memcpy in _mesa_insert_mvp_code.

tags/pre-merge-glsl-compiler-1
Oliver McFadden 18 years ago
parent
commit
cfe984dbd0
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/mesa/shader/programopt.c

+ 1
- 2
src/mesa/shader/programopt.c View File

} }


/* Append original instructions after new instructions */ /* 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 */ /* free old instructions */
_mesa_free(vprog->Base.Instructions); _mesa_free(vprog->Base.Instructions);

Loading…
Cancel
Save