mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-02 18:57:10 -04:00
Fix crash from uninitialized variable
This commit is contained in:
parent
557c8f7b0c
commit
8427608787
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user