diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-18 07:27:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-18 07:41:24 +0300 |
commit | af4167441bc37707c1ed32ded348bc0865f9c093 (patch) | |
tree | 586d24617fe21cc8b6257851e5176ba664d6ccdb /source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc | |
parent | 50a4b9d502104aabdd33ed924a89fe018cfa80b3 (diff) |
Cleanup: clang-tidy
Diffstat (limited to 'source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc')
-rw-r--r-- | source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc index ec968fa33da..93f71f920eb 100644 --- a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc +++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc @@ -115,7 +115,7 @@ static void extract_tris_finish(const MeshRenderData *mr, constexpr MeshExtract create_extractor_tris() { - MeshExtract extractor = {0}; + MeshExtract extractor = {nullptr}; extractor.init = extract_tris_init; extractor.iter_looptri_bm = extract_tris_iter_looptri_bm; extractor.iter_looptri_mesh = extract_tris_iter_looptri_mesh; @@ -197,7 +197,7 @@ static void extract_tris_single_mat_finish(const MeshRenderData *mr, for (int i = 0; i < mr->mat_len; i++) { /* These IBOs have not been queried yet but we create them just in case they are needed * later since they are not tracked by mesh_buffer_cache_create_requested(). */ - if (mbc->tris_per_mat[i] == NULL) { + if (mbc->tris_per_mat[i] == nullptr) { mbc->tris_per_mat[i] = GPU_indexbuf_calloc(); } /* Multiply by 3 because these are triangle indices. */ @@ -209,7 +209,7 @@ static void extract_tris_single_mat_finish(const MeshRenderData *mr, constexpr MeshExtract create_extractor_tris_single_mat() { - MeshExtract extractor = {0}; + MeshExtract extractor = {nullptr}; extractor.init = extract_tris_single_mat_init; extractor.iter_looptri_bm = extract_tris_single_mat_iter_looptri_bm; extractor.iter_looptri_mesh = extract_tris_single_mat_iter_looptri_mesh; |