Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2021-08-16 02:07:25 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-08-16 02:08:17 +0300
commit899935d5d02463187617d1adc5f0c0f41fe56265 (patch)
tree3ba65cae4c6c55f297152709bf376a583b5e65d3 /source/blender/draw
parent3f0d785d23bf246abcb6f9cf86e106cdc9ac3636 (diff)
Fix wrong usage of 'sizeof'
The intention was to use `ARRAY_SIZE`. No functional changes.
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_mesh.c2
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);