Skip to content

Commit 5ea6f2a

Browse files
committed
working v3
1 parent 9edce91 commit 5ea6f2a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • crates/processing_glfw/src

crates/processing_glfw/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ impl GlfwContext {
359359
Ok(())
360360
});
361361
self.last_applied.position = frame_pos;
362+
363+
let (w, h) = self.window.get_size();
364+
self.last_applied.size = bevy::math::UVec2::new(w.max(0) as u32, h.max(0) as u32);
362365
}
363366

364367
#[cfg(not(feature = "wayland"))]

0 commit comments

Comments
 (0)