OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1240eb2
)
use _mesa_alloc_instructions()
author
Brian
<brian@yutani.localnet.net>
Thu, 22 Mar 2007 14:51:34 +0000
(08:51 -0600)
committer
Brian
<brian@yutani.localnet.net>
Thu, 22 Mar 2007 14:51:34 +0000
(08:51 -0600)
src/mesa/tnl/t_vp_build.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_vp_build.c
b/src/mesa/tnl/t_vp_build.c
index
2663d99
..
b1c148a
100644
(file)
--- a/
src/mesa/tnl/t_vp_build.c
+++ b/
src/mesa/tnl/t_vp_build.c
@@
-1416,9
+1416,8
@@
create_new_program( const struct state_key *key,
else
p.temp_reserved = ~((1<<max_temps)-1);
- p.program->Base.Instructions
- = (struct prog_instruction*) MALLOC(sizeof(struct prog_instruction) * MAX_INSN);
- p.program->Base.String = 0;
+ p.program->Base.Instructions = _mesa_alloc_instructions(MAX_INSN);
+ p.program->Base.String = NULL;
p.program->Base.NumInstructions =
p.program->Base.NumTemporaries =
p.program->Base.NumParameters =