renderer/metal: free resources when occluded

This commit is contained in:
Mitchell Hashimoto
2024-02-13 20:07:41 -08:00
parent bef83446d1
commit b5d543705d
2 changed files with 21 additions and 0 deletions

View File

@@ -250,6 +250,9 @@ fn drainMailbox(self: *Thread) !void {
// Set our visible state
self.flags.visible = v;
// Set it on the renderer
try self.renderer.setVisible(v);
// If we became visible then we immediately trigger a draw.
// We don't need to update frame data because that should
// still be happening.