diff options
author | Brian Paul <[email protected]> | 2005-12-06 15:41:43 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-12-06 15:41:43 +0000 |
commit | 9580179dfb42d5b81ff6ec9704b82a556c7f1229 (patch) | |
tree | ae2a55aa82c4efc43ae832abcf316e1773c228bb /src/mesa/main/texenvprogram.c | |
parent | d5179613d5302173471a6a910fa9ec235c9ff046 (diff) |
C++ fixes, mostly casts (Stephane Conversy)
Diffstat (limited to 'src/mesa/main/texenvprogram.c')
-rw-r--r-- | src/mesa/main/texenvprogram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index a92db42bfd0..711464aab29 100644 --- a/src/mesa/main/texenvprogram.c +++ b/src/mesa/main/texenvprogram.c @@ -998,7 +998,7 @@ create_new_program(struct state_key *key, GLcontext *ctx, p.program = program; p.program->Base.Instructions = - _mesa_malloc(sizeof(struct prog_instruction) * MAX_INSTRUCTIONS); + (struct prog_instruction*) _mesa_malloc(sizeof(struct prog_instruction) * MAX_INSTRUCTIONS); p.program->Base.NumInstructions = 0; p.program->Base.Target = GL_FRAGMENT_PROGRAM_ARB; p.program->NumTexIndirections = 1; /* correct? */ |