summaryrefslogtreecommitdiff
path: root/src/mesa/shader/arbprogparse.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-08-24 21:58:32 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-08-24 21:58:32 +0000
commita75439093c044301fd54dc42b30d0ee5a475d477 (patch)
tree70878b8189464b91062cf2b4cb1a3a882b7600ca /src/mesa/shader/arbprogparse.c
parent3b9b8de9b0bf2f1e69a450360a812090520b2b29 (diff)
use _mesa_realloc_instructions()
Diffstat (limited to 'src/mesa/shader/arbprogparse.c')
-rw-r--r--src/mesa/shader/arbprogparse.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index 39e74576ce..b2dc0b29c7 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -1,6 +1,6 @@
/*
* Mesa 3-D graphics library
- * Version: 6.5
+ * Version: 6.5.1
*
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
*
@@ -4047,11 +4047,11 @@ _mesa_parse_arb_program(GLcontext *ctx, GLenum target,
/* Reallocate the instruction array from size [MAX_INSTRUCTIONS]
* to size [ap.Base.NumInstructions].
*/
- program->Base.Instructions = (struct prog_instruction *)
- _mesa_realloc(program->Base.Instructions,
- MAX_INSTRUCTIONS * sizeof(struct prog_instruction),/*orig*/
- program->Base.NumInstructions * sizeof(struct prog_instruction));
-
+ program->Base.Instructions
+ = _mesa_realloc_instructions(program->Base.Instructions,
+ MAX_INSTRUCTIONS,
+ program->Base.NumInstructions);
+
return !err;
}