renderer/metal: release device on deinit()

This commit is contained in:
Emily
2024-11-02 17:48:56 +00:00
parent e5f9f222b2
commit 9c8b00f87d

View File

@ -207,6 +207,7 @@ pub const GPUState = struct {
for (&self.frames) |*frame| frame.deinit(); for (&self.frames) |*frame| frame.deinit();
self.instance.deinit(); self.instance.deinit();
self.queue.release(); self.queue.release();
self.device.release();
} }
/// Get the next frame state to draw to. This will wait on the /// Get the next frame state to draw to. This will wait on the