C++ fixes, mostly casts (Stephane Conversy)

This commit is contained in:
Brian Paul
2005-12-06 15:41:43 +00:00
parent d5179613d5
commit 9580179dfb
14 changed files with 49 additions and 46 deletions

View File

@@ -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? */