mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-09-08 03:29:48 -04:00
Fix memory leak in the GPU buffer.
mentioned in https://github.com/PixelGuys/Cubyz/issues/1202#issuecomment-2746564753 introduced in e7ecd161ce00851240ad5bb9bcb1aa0bd69dc1d5
This commit is contained in:
parent
a061dcb254
commit
ebf157785a
@ -321,6 +321,7 @@ const PrimitiveMesh = struct { // MARK: PrimitiveMesh
|
|||||||
max: Vec3f = undefined,
|
max: Vec3f = undefined,
|
||||||
|
|
||||||
fn deinit(self: *PrimitiveMesh) void {
|
fn deinit(self: *PrimitiveMesh) void {
|
||||||
|
faceBuffer.free(self.bufferAllocation);
|
||||||
self.completeList.deinit(main.globalAllocator);
|
self.completeList.deinit(main.globalAllocator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user