| } | } | ||||
| /* 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); |