VEFontCache: runtime bugfixes

This commit is contained in:
ed committed 2024-06-06 00:43:18 -04:00
1 parent 566a90001b
commit 38be79d7a9
11 files changed
+170 -76

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ atlas_init :: proc( ctx : ^Context, width, height : i32, num_nodes : u32 = Init_
{
error : AllocatorError
ctx.atlas, error = make( Array(AtlasNode), u64(num_nodes), dbg_name = "font atlas" )
ensure(error != AllocatorError.None, "Failed to allocate font atlas")
ensure(error == AllocatorError.None, "Failed to allocate font atlas")
ctx.width = width
ctx.height = height