summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_instruction.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-09-21 16:32:57 -0700
committerMatt Turner <[email protected]>2014-09-24 09:58:42 -0700
commit452926a5ec54e5700657d28b2cb8e46c4bbaa0a9 (patch)
treedcbd417d2ade077e18f25bf31afb4022138dc9a1 /src/mesa/program/prog_instruction.c
parente5162defc8169a1d0a06e16c65c5f63b98923426 (diff)
mesa: Use realloc() instead of _mesa_realloc() and remove the latter.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/program/prog_instruction.c')
-rw-r--r--src/mesa/program/prog_instruction.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/program/prog_instruction.c b/src/mesa/program/prog_instruction.c
index dc0a5109f88..e2eadc36c62 100644
--- a/src/mesa/program/prog_instruction.c
+++ b/src/mesa/program/prog_instruction.c
@@ -90,9 +90,8 @@ _mesa_realloc_instructions(struct prog_instruction *oldInst,
struct prog_instruction *newInst;
newInst = (struct prog_instruction *)
- _mesa_realloc(oldInst,
- numOldInst * sizeof(struct prog_instruction),
- numNewInst * sizeof(struct prog_instruction));
+ realloc(oldInst,
+ numNewInst * sizeof(struct prog_instruction));
return newInst;
}