From 84276087874f46ece3a9226278c0c3b09d4c6127 Mon Sep 17 00:00:00 2001 From: IntegratedQuantum Date: Sun, 8 Jun 2025 11:46:13 +0200 Subject: [PATCH] Fix crash from uninitialized variable --- src/graphics.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphics.zig b/src/graphics.zig index 88663fad..73bc3e4e 100644 --- a/src/graphics.zig +++ b/src/graphics.zig @@ -1897,6 +1897,7 @@ pub fn LargeBuffer(comptime Entry: type) type { // MARK: LargerBuffer c.glBufferStorage(c.GL_SHADER_STORAGE_BUFFER, bytes, null, flags); self.ssbo.bind(self.binding); self.capacity = size; + self.used = 0; } pub fn init(self: *Self, allocator: NeverFailingAllocator, size: u31, binding: c_uint) void {