harrand / Topaz

C++20 Game Engine
https://harrand.github.io/Topaz/
MIT License
35 stars 3 forks source link

Bug Report: Text Renderer does not support removing /re-adding strings #93

Closed harrand closed 8 months ago

harrand commented 8 months ago

Describe the bug The free list of string handles does not work. The vertex shader currently works by checking all strings in-order. This means having strings that are not in order of offsets is wrong and breaks horribly.

Reproduction

Expected behavior Users of text_renderer should be able to remove and then add new text without dodgy behaviour. They shouldn't need to worry about the internal sorting of strings having to be correct.

Screenshots N/A

Conditions (please complete the following information):

harrand commented 8 months ago

Fixed at 68a643885423ebf626ff0e5e7e1b7eb1a3602c9a