{gfx,examples}: simplify text rendering API a bit

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-05-13 22:38:40 +02:00
parent 393320aa68
commit 122a1ea9a7
5 changed files with 153 additions and 117 deletions

View file

@ -88,7 +88,6 @@ pub fn printTitle(
args: anytype,
) !void {
// Free any previous window title slice
// TODO: reuse allocations
if (core.get(window_id, .title)) |slice| core.state().allocator.free(slice);
// Allocate and assign a new window title slice.