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 {