Skip to content

Commit

Permalink
only redraw after canvas changed
Browse files Browse the repository at this point in the history
  • Loading branch information
galister committed Apr 15, 2024
1 parent 112b50d commit 4d7b4fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/openxr/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub(super) fn init_xr() -> Result<(xr::Instance, xr::SystemId), anyhow::Error> {
enabled_extensions.ext_dpad_binding = true;
} else {
log::warn!("Missing EXT_dpad_binding extension.");
}
}
if available_extensions.ext_hp_mixed_reality_controller {
enabled_extensions.ext_hp_mixed_reality_controller = true;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/backend/uidev/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ pub fn uidev_run(panel_name: &str) -> anyhow::Result<()> {
.unwrap(),
);
recreate = false;
window.request_redraw();
}

{
Expand Down Expand Up @@ -220,7 +221,6 @@ pub fn uidev_run(panel_name: &str) -> anyhow::Result<()> {
}
}
}
Event::AboutToWait => window.request_redraw(),
_ => (),
}
})?;
Expand Down

0 comments on commit 4d7b4fa

Please sign in to comment.