diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-01-06 18:04:12 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-01-06 18:24:52 +0300 |
commit | c2089ae53ca36e83181573752eb7dd622494b63f (patch) | |
tree | 8982514ddbe47d209aabdfffc6e2055ddd0554e4 /source/blender/draw/intern/mesh_extractors | |
parent | ddae2d88fac7be1055974a19e4f62e4bc01a4ff6 (diff) |
GPU subdiv: fix wrong data sizes used for lines adjacency IBO
Function parameters were mismatched, causing an assertion failure in
debug builds.
Diffstat (limited to 'source/blender/draw/intern/mesh_extractors')
-rw-r--r-- | source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc index 6855feb51ed..dc3b170ddc2 100644 --- a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc +++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc @@ -193,7 +193,7 @@ static void extract_lines_adjacency_init_subdiv(const DRWSubdivCache *subdiv_cac * total: (number_of_loops + number_of_quads). */ const uint tess_len = subdiv_cache->num_subdiv_loops + subdiv_cache->num_subdiv_quads; line_adjacency_data_init( - data, tess_len, subdiv_cache->num_subdiv_verts, subdiv_cache->num_subdiv_loops); + data, subdiv_cache->num_subdiv_verts, subdiv_cache->num_subdiv_loops, tess_len); } static void extract_lines_adjacency_iter_subdiv(const DRWSubdivCache *subdiv_cache, |