diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-08-07 22:55:54 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-08-07 22:55:54 +0200 |
commit | e90f377b9fbab23a140029e71ef57933b266c473 (patch) | |
tree | d2bed381d044db5412dbf965c8a4ae17585ff391 /examples/window.rs | |
parent | 90e62083d686ed9c878beb348e9b54853242eab0 (diff) | |
parent | 9261408cc8d2ba54ddea0c9ddd43560e03d45bdc (diff) | |
download | glutin-e90f377b9fbab23a140029e71ef57933b266c473.tar.gz glutin-e90f377b9fbab23a140029e71ef57933b266c473.zip |
Merge pull request #565 from tomaka/correct-example
Use modern GL code for the examples
Diffstat (limited to 'examples/window.rs')
-rw-r--r-- | examples/window.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/window.rs b/examples/window.rs index f686a51..8204b95 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -19,7 +19,7 @@ fn resize_callback(width: u32, height: u32) { #[cfg(feature = "window")] fn main() { - let mut window = glutin::WindowBuilder::new().with_gl_profile(glutin::GlProfile::Compatibility).build().unwrap(); + let mut window = glutin::WindowBuilder::new().build().unwrap(); window.set_title("A fantastic window!"); window.set_window_resize_callback(Some(resize_callback as fn(u32, u32))); unsafe { window.make_current() }; |