Skip to content

Commit

Permalink
Fix handling of .Alloc_Non_Zeroed
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarnp committed Nov 6, 2022
1 parent 4acea8a commit 96010f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions allocator.odin
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ TrackedAllocator :: proc(
new_memory, error := self.backing_allocator.procedure(self.backing_allocator.data, mode, size, alignment, old_memory, old_size, location);
if error == .None {
switch mode {
case .Alloc:
case .Alloc, .Alloc_Non_Zeroed:
if new_memory != nil {
if self.callstack_enable {
___tracy_emit_memory_alloc_callstack(raw_data(new_memory), c.size_t(size), self.callstack_size, 1);
Expand Down Expand Up @@ -57,8 +57,6 @@ TrackedAllocator :: proc(
// TODO
case .Query_Features:
// TODO
case .Alloc_Non_Zeroed:
// TODO
}
}
return new_memory, error;
Expand Down

0 comments on commit 96010f2

Please sign in to comment.