mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
The GL renderer cached the vertex buffer upload by comparing the data pointer and count. After clearing and refilling the buffer with a new font's glyphs, std::vector reused the same allocation, so the pointer and count matched — the upload was skipped and the GPU drew with stale vertex data containing old atlas offsets. Fix by adding a generation counter to demo_buffer_t that increments on clear(). The renderer compares generation and count to decide whether to re-upload. Assisted-by: Claude <noreply@anthropic.com>