diff options
author | Brian <[email protected]> | 2007-03-22 08:50:20 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-03-22 08:50:20 -0600 |
commit | 1240eb2683043ba81e81378807170d0d7045581d (patch) | |
tree | a850fdd107928f43eb1436cc203b297979ff5127 /src | |
parent | 985a2eff82111e81f70b6dea9d9b3184dd0061d3 (diff) |
use _mesa_copy_instructions()
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/texenvprogram.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index 5038b9b0c36..d1994f76d1b 100644 --- a/src/mesa/main/texenvprogram.c +++ b/src/mesa/main/texenvprogram.c @@ -1013,7 +1013,7 @@ create_new_program(GLcontext *ctx, struct state_key *key, p.program->NumTexIndirections = 1; /* correct? */ p.program->NumTexInstructions = 0; p.program->NumAluInstructions = 0; - p.program->Base.String = 0; + p.program->Base.String = NULL; p.program->Base.NumInstructions = p.program->Base.NumTemporaries = p.program->Base.NumParameters = @@ -1102,9 +1102,8 @@ create_new_program(GLcontext *ctx, struct state_key *key, "generating tex env program"); return; } - _mesa_memcpy(program->Base.Instructions, instBuffer, - sizeof(struct prog_instruction) - * program->Base.NumInstructions); + _mesa_copy_instructions(program->Base.Instructions, instBuffer, + program->Base.NumInstructions); /* Notify driver the fragment program has (actually) changed. */ |