From 899935d5d02463187617d1adc5f0c0f41fe56265 Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Sun, 15 Aug 2021 20:07:25 -0300 Subject: Fix wrong usage of 'sizeof' The intention was to use `ARRAY_SIZE`. No functional changes. --- source/blender/draw/intern/draw_cache_impl_mesh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/draw') 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); -- cgit v1.2.3