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:
IntegratedQuantum 2025-03-24 07:50:04 +01:00
parent a061dcb254
commit ebf157785a

View File

@ -321,6 +321,7 @@ const PrimitiveMesh = struct { // MARK: PrimitiveMesh
max: Vec3f = undefined,
fn deinit(self: *PrimitiveMesh) void {
faceBuffer.free(self.bufferAllocation);
self.completeList.deinit(main.globalAllocator);
}