Skip to content

Commit

Permalink
Merge pull request #264 from mahkoh/jorth/fix-connector-damage
Browse files Browse the repository at this point in the history
metal: reset frontend damage state when latching
  • Loading branch information
mahkoh authored Sep 13, 2024
2 parents 2c0caa9 + e514c32 commit a740855
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/backends/metal/present.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,6 @@ impl MetalConnector {
self.can_present.set(false);
if let Some(latched) = latched {
self.has_damage.fetch_sub(latched.damage);
node.global
.connector
.damaged
.set(self.has_damage.is_not_zero());
}
self.cursor_changed.set(false);
Ok(())
Expand Down Expand Up @@ -486,6 +482,7 @@ impl MetalConnector {
if damage == 0 {
return None;
}
node.global.connector.damaged.set(false);
let render_hw_cursor = !self.cursor_enabled.get();
let mode = node.global.mode.get();
let pass = create_render_pass(
Expand Down

0 comments on commit a740855

Please sign in to comment.