mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
renderer/metal: release device on deinit()
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user