Started to overhaul memory setup + runtime fixes

This commit is contained in:
ed
2024-03-07 15:57:17 -05:00
parent 6836459a1d
commit f2237e7211
13 changed files with 255 additions and 357 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ debug_draw_text :: proc( content : string, pos : Vec2, size : f32, color : rl.Co
if len( content ) == 0 {
return
}
runes, alloc_error := to_runes( content, context.temp_allocator )
runes, alloc_error := to_runes( content, frame_allocator() )
// runes, alloc_error := to_runes( content, context.temp_allocator )
// verify( alloc_error == AllocatorError.None, "Failed to temp allocate runes" )
@@ -40,7 +40,7 @@ debug_draw_text_world :: proc( content : string, pos : Vec2, size : f32, color :
if len( content ) == 0 {
return
}
runes, alloc_error := to_runes( content, context.temp_allocator )
runes, alloc_error := to_runes( content, frame_allocator() )
verify( alloc_error == AllocatorError.None, "Failed to temp allocate runes" )
font := font