mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 13:20:06 -04:00
Warning fixes for OS X.
This commit is contained in:
@@ -39,13 +39,13 @@ fn main() {
|
||||
|
||||
#[cfg(feature = "window")]
|
||||
fn run(window: glutin::Window, color: (f32, f32, f32, f32)) {
|
||||
unsafe { window.make_current() };
|
||||
let _ = unsafe { window.make_current() };
|
||||
|
||||
let context = support::load(&window);
|
||||
|
||||
for event in window.wait_events() {
|
||||
context.draw_frame(color);
|
||||
window.swap_buffers();
|
||||
let _ = window.swap_buffers();
|
||||
|
||||
match event {
|
||||
glutin::Event::Closed => break,
|
||||
|
||||
Reference in New Issue
Block a user