Skip to content

Commit 4fbec51

Browse files
committed
Updated resize in initWithExistingContext to take allocator
1 parent d90f353 commit 4fbec51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub fn initWithExistingContext(allocator: std.mem.Allocator, ctx: Context) void
7272
zguiSetCurrentContext(ctx);
7373

7474
temp_buffer = std.ArrayList(u8){};
75-
temp_buffer.?.resize(3 * 1024 + 1) catch unreachable;
75+
temp_buffer.?.resize(mem_allocator.?, 3 * 1024 + 1) catch unreachable;
7676

7777
if (te_enabled) {
7878
te.init();

0 commit comments

Comments
 (0)