diff options
author | Axel Davy <[email protected]> | 2016-10-21 17:27:10 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-10-24 21:56:44 +0200 |
commit | 942778099ea597ee6b04ebdc74f506667fc7782c (patch) | |
tree | 85f64d52a5221be68421a7d5d6cc48f29037407e /src/gallium/state_trackers/nine/texture9.c | |
parent | 54010cf8b6da71a1b14c0dc586bb7e6be27052de (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/texture9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/texture9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/texture9.c b/src/gallium/state_trackers/nine/texture9.c index a13d7f4e48c..bf054cc3059 100644 --- a/src/gallium/state_trackers/nine/texture9.c +++ b/src/gallium/state_trackers/nine/texture9.c @@ -161,7 +161,7 @@ NineTexture9_ctor( struct NineTexture9 *This, * apps access sublevels of texture even if they locked only first * level) */ level_offsets = alloca(sizeof(unsigned) * (info->last_level + 1)); - user_buffer = align_malloc( + user_buffer = align_calloc( nine_format_get_size_and_offsets(pf, level_offsets, Width, Height, info->last_level), 32); |