Commit graph

2 commits

Author SHA1 Message Date
34c84ce50a Fix UniformCollection owner validity check (closes #272)
UniformCollection accessor methods checked the raw collection pointer
but never checked if the owning object was still alive. Changed owner
field from weak_ptr<UIDrawable> to weak_ptr<void> (type-erased) so
both UIDrawable and UIEntity owners can be tracked. Set owner in both
get_uniforms() paths. All accessors now check owner.lock() before
dereferencing the raw collection pointer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 17:07:14 -04:00
486087b9cb Shaders 2026-01-25 21:04:01 -05:00