summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/cubetexture9.c
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-10-21 17:27:10 +0200
committerAxel Davy <[email protected]>2016-10-24 21:56:44 +0200
commit942778099ea597ee6b04ebdc74f506667fc7782c (patch)
tree85f64d52a5221be68421a7d5d6cc48f29037407e /src/gallium/state_trackers/nine/cubetexture9.c
parent54010cf8b6da71a1b14c0dc586bb7e6be27052de (diff)
st/nine: Use align_calloc instead of align_malloc
We are not sure exactly what needs to be 0 initialized, but we are missing some cases. 0 initialize all our current aligned allocation. Fixes Tree of Savior visual issues. Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/cubetexture9.c')
-rw-r--r--src/gallium/state_trackers/nine/cubetexture9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/cubetexture9.c b/src/gallium/state_trackers/nine/cubetexture9.c
index 912d5087c39..0a834eba4bd 100644
--- a/src/gallium/state_trackers/nine/cubetexture9.c
+++ b/src/gallium/state_trackers/nine/cubetexture9.c
@@ -111,7 +111,7 @@ NineCubeTexture9_ctor( struct NineCubeTexture9 *This,
face_size = nine_format_get_size_and_offsets(pf, level_offsets,
EdgeLength, EdgeLength,
info->last_level);
- This->managed_buffer = align_malloc(6 * face_size, 32);
+ This->managed_buffer = align_calloc(6 * face_size, 32);
if (!This->managed_buffer)
return E_OUTOFMEMORY;
}