diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-01-06 18:23:37 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-01-06 18:25:09 +0300 |
commit | 0c6b29ee4378043493d1027e587a91a1e286dbb7 (patch) | |
tree | 373c5df4c7431f6f4a4541f8a51c5facac3db26c /source/blender/draw/intern/draw_cache_extract_mesh.cc | |
parent | c2089ae53ca36e83181573752eb7dd622494b63f (diff) |
Fix T94672: incorrect Workbench shadows with GPU subdivision
The `lines_adjacency` IBO build in the GPU subdivision case was missing
edges at the boundaries of open meshes. As it is used for the shadow
pass, the shadows were then not clipped properly.
This would also make X-Ray mode render differently in those cases.
To fix this, we can simply reuse the buffer finalization routine from the
non-subdivision case, as such edges are handled there.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_extract_mesh.cc')
-rw-r--r-- | source/blender/draw/intern/draw_cache_extract_mesh.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_extract_mesh.cc b/source/blender/draw/intern/draw_cache_extract_mesh.cc index 383a3b05b67..eed015bc212 100644 --- a/source/blender/draw/intern/draw_cache_extract_mesh.cc +++ b/source/blender/draw/intern/draw_cache_extract_mesh.cc @@ -869,7 +869,7 @@ static void mesh_buffer_cache_create_requested_subdiv(MeshBatchCache *cache, } if (extractor->finish_subdiv) { - extractor->finish_subdiv(subdiv_cache, buffer, data); + extractor->finish_subdiv(subdiv_cache, &mr, cache, buffer, data); } } MEM_freeN(data_stack); |