aboutsummaryrefslogtreecommitdiffstats
path: root/examples/window.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-08-07 22:55:54 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-08-07 22:55:54 +0200
commite90f377b9fbab23a140029e71ef57933b266c473 (patch)
treed2bed381d044db5412dbf965c8a4ae17585ff391 /examples/window.rs
parent90e62083d686ed9c878beb348e9b54853242eab0 (diff)
parent9261408cc8d2ba54ddea0c9ddd43560e03d45bdc (diff)
downloadglutin-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.rs2
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() };