fix: order of operations on wayland material properties

This commit is contained in:
Nova
2023-02-16 14:03:13 -05:00
parent 23925b4475
commit 8ba199f053
3 changed files with 18 additions and 12 deletions

View File

@@ -170,7 +170,7 @@ fn main() -> Result<()> {
hmd::frame(sk);
#[cfg(feature = "wayland")]
wayland.frame(sk);
wayland.frame_event(sk);
destroy_queue::clear();
if let Some(mouse_pointer) = &mouse_pointer {
@@ -206,6 +206,8 @@ fn main() -> Result<()> {
std::thread::sleep(sleep_duration); // to give clients a chance to even update anything before drawing
});
}
#[cfg(feature = "wayland")]
wayland.update(sk);
drawable::draw(sk);
audio::update();
#[cfg(feature = "wayland")]