tornavis/source/blender/draw
Hans Goudey 7f4a4fa605 Fix #119787: Curves viewport attribute drawing crash
Caused by 1cca960677.

That commit stated that creating the final subdivided attribute didn't
free the "proc" attribute buffer that contains the data from the Curves
control points. However that wasn't the case, given the call to
`GPU_VERTBUF_DISCARD_SAFE` in that function. That caused a crash when
the overlay engine and EEVEE both wanted to access the VBO and it was
discarded the second time. To fix that, only regenerate the
`proc_attributes_buf` when it doesn't already exist.

This matches the "ensure" behavior that already exists for the
`cache.final[subdiv].attributes_buf` buffer, so conceptually it
seems fine.

Pull Request: https://projects.blender.org/blender/blender/pulls/119795
2024-03-22 17:19:50 +01:00
..
engines Fix #119527: Aliased Wireframe In XRay 2024-03-19 14:23:43 +01:00
intern Fix #119787: Curves viewport attribute drawing crash 2024-03-22 17:19:50 +01:00
tests Draw: Fix 'draw_resource_id_gen' test 2024-02-01 14:10:51 +01:00
CMakeLists.txt Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00
DRW_engine.hh Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00
DRW_pbvh.hh Cleanup: Use forward declarations to replace includes of BKE_attribute.hh 2023-12-20 13:25:28 -05:00
DRW_select_buffer.hh Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00