diff --git a/src/software/SoftCommandBuffer.zig b/src/software/SoftCommandBuffer.zig index 3ba0bd4..ce979b7 100644 --- a/src/software/SoftCommandBuffer.zig +++ b/src/software/SoftCommandBuffer.zig @@ -128,9 +128,10 @@ pub fn create(device: *base.Device, allocator: std.mem.Allocator, info: *const v self.* = .{ .interface = interface, - .command_allocator = .init(interface.host_allocator.allocator()), + .command_allocator = undefined, .commands = .empty, }; + self.command_allocator = .init(interface.host_allocator.allocator()); return self; }