diff options
author | Nicolai Hähnle <[email protected]> | 2016-08-08 20:41:04 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-08-17 12:11:22 +0200 |
commit | cb9ed66cc56aa1ac0e36594c11acc314a67cc205 (patch) | |
tree | 4ad5efa5bda6fff958f73674aef82a54ee70a3f4 /src/mesa/state_tracker | |
parent | 67c0f077a2198b8337a74a1027242b406a6bc571 (diff) |
st_glsl_to_tgsi: use calloc the way it's meant to be used
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 3e5b322b9d1..5a9cadcdb2e 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -6038,7 +6038,7 @@ st_translate_program( t->num_temp_arrays = program->next_array; if (t->num_temp_arrays) t->arrays = (struct ureg_dst*) - calloc(1, sizeof(t->arrays[0]) * t->num_temp_arrays); + calloc(t->num_temp_arrays, sizeof(t->arrays[0])); /* * Declare input attributes. |