diff options
author | Tapani Pälli <[email protected]> | 2016-11-03 11:36:47 +0200 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2016-11-03 12:09:40 +0200 |
commit | 979ec2cf754b28640c1c03a5cae8cc3a5febf33e (patch) | |
tree | 0de6ddbe935fae817b4aeb689504920ca2d5b25e /src/mesa/drivers | |
parent | 908f92ad1f8562490468716d789f4d78b543399c (diff) |
i965: use rzalloc instead of calloc in brwNewProgram
commit cc6aa1d161280f10ded7834d1ec2413bc97589fe changed to using rzalloc
for gl_program creation but one instance for program creation was still
using calloc.
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Juan A. Suarez <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_program.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index 647f138f0a3..ffe4c277776 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -152,7 +152,7 @@ static struct gl_program *brwNewProgram( struct gl_context *ctx, rzalloc(NULL, struct gen4_fragment_program); prog = &g4_prog->base; } else { - prog = CALLOC_STRUCT(brw_program); + prog = rzalloc(NULL, struct brw_program); } if (prog) { |