summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/buffer9.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/buffer9.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/buffer9.c')
-rw-r--r--src/gallium/state_trackers/nine/buffer9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/buffer9.c b/src/gallium/state_trackers/nine/buffer9.c
index e7c6a2fdcab..cbf410ba717 100644
--- a/src/gallium/state_trackers/nine/buffer9.c
+++ b/src/gallium/state_trackers/nine/buffer9.c
@@ -125,7 +125,7 @@ NineBuffer9_ctor( struct NineBuffer9 *This,
return hr;
if (Pool == D3DPOOL_MANAGED) {
- This->managed.data = align_malloc(
+ This->managed.data = align_calloc(
nine_format_get_level_alloc_size(This->base.info.format,
Size, 1, 0), 32);
if (!This->managed.data)