mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-23 02:16:33 +11:00
Update README.md
This commit is contained in:
parent
48632619c9
commit
3ea19e0fa2
1 changed files with 1 additions and 3 deletions
|
@ -19,8 +19,6 @@ extern crate libc;
|
|||
extern crate gl;
|
||||
|
||||
fn main() {
|
||||
use std::default::Default;
|
||||
|
||||
let window = init::Window::new().unwrap();
|
||||
|
||||
unsafe { window.make_current() };
|
||||
|
@ -29,7 +27,7 @@ fn main() {
|
|||
|
||||
gl::ClearColor(0.0, 1.0, 0.0, 1.0);
|
||||
|
||||
while !window.should_close() {
|
||||
while !window.is_closed() {
|
||||
window.wait_events();
|
||||
|
||||
gl::Clear(gl::COLOR_BUFFER_BIT);
|
||||
|
|
Loading…
Add table
Reference in a new issue