This commit is contained in:
gingerBill
2021-01-15 15:46:15 +00:00
parent 3bcccf88d5
commit e884f8c165

View File

@@ -523,6 +523,7 @@ gb_global Temp_Allocator temporary_allocator_data = {};
void temp_allocator_init(Temp_Allocator *s, isize size) {
s->backup_allocator = heap_allocator();
s->data = cast(u8 *)gb_alloc_align(s->backup_allocator, size, 16);
s->len = size;
s->curr_offset = 0;
s->leaked_allocations.allocator = s->backup_allocator;
}