Runtime fixes

This commit is contained in:
2024-03-02 20:22:28 -05:00
parent b4feb9e506
commit bd6e79d005
5 changed files with 13 additions and 11 deletions

View File

@ -12,7 +12,7 @@ debug_draw_text :: proc( content : string, pos : Vec2, size : f32, color : rl.Co
return
}
runes, alloc_error := to_runes( content, context.temp_allocator )
verify( alloc_error != AllocatorError.None, "Failed to temp allocate runes" )
verify( alloc_error == AllocatorError.None, "Failed to temp allocate runes" )
font := font
if font.key == Font_Default.key {
@ -40,7 +40,7 @@ debug_draw_text_world :: proc( content : string, pos : Vec2, size : f32, color :
return
}
runes, alloc_error := to_runes( content, context.temp_allocator )
verify( alloc_error != AllocatorError.None, "Failed to temp allocate runes" )
verify( alloc_error == AllocatorError.None, "Failed to temp allocate runes" )
font := font
if font.key == Font_Default.key {