From 9580179dfb42d5b81ff6ec9704b82a556c7f1229 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 6 Dec 2005 15:41:43 +0000 Subject: C++ fixes, mostly casts (Stephane Conversy) --- src/mesa/main/texenvprogram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/main/texenvprogram.c') diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index a92db42bfd..711464aab2 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? */ -- cgit v1.2.3