diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-08-16 02:07:25 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-08-16 02:08:17 +0300 |
commit | 899935d5d02463187617d1adc5f0c0f41fe56265 (patch) | |
tree | 3ba65cae4c6c55f297152709bf376a583b5e65d3 /source/blender/draw/intern/draw_cache_impl_mesh.c | |
parent | 3f0d785d23bf246abcb6f9cf86e106cdc9ac3636 (diff) |
Fix wrong usage of 'sizeof'
The intention was to use `ARRAY_SIZE`.
No functional changes.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_mesh.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c index 86c14330409..52b76733b78 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -215,7 +215,7 @@ static const DRWBatchFlag g_buffer_deps[] = { }; #ifndef NDEBUG -static DRWBatchFlag g_buffer_deps_d[sizeof(g_buffer_deps)] = {0}; +static DRWBatchFlag g_buffer_deps_d[ARRAY_SIZE(g_buffer_deps)] = {0}; #endif static void mesh_batch_cache_discard_surface_batches(MeshBatchCache *cache); |