Skip to content

Commit

Permalink
Update for glutin wasm_stub branch tracking Rust 2018 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
iceiix committed Mar 3, 2019
1 parent 2f2f358 commit 0d5c147
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ opt-level = 1
cfg-if = "0.1.2"
wasm-bindgen = "0.2.33"
sha-1 = "0.8.1"
glutin = { git = "https://github.com/iceiix/glutin", rev = "97797352b5242436cb82d8ecfb44242b69766e4c" }
glutin = { git = "https://github.com/iceiix/glutin", rev = "de52fba20678f3931fba3eb6700774469e48512f" }
byteorder = "1.2.7"
serde = "1.0.89"
serde_json = "1.0.39"
Expand Down
2 changes: 1 addition & 1 deletion src/gl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use std::ptr;
use std::ops::{Deref, DerefMut};

/// Inits the gl library. This should be called once a context is ready.
pub fn init(vid: & glutin::CombinedContext) {
pub fn init(vid: & glutin::WindowedContext) {
gl::load_with(|s| vid.get_proc_address(s) as *const _);
}

Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ pub fn main() {
.with_gl(glutin::GlRequest::GlThenGles{opengl_version: (3, 2), opengles_version: (2, 0)})
.with_gl_profile(glutin::GlProfile::Core)
.with_vsync(vsync);
let mut window = glutin::CombinedContext::new(window_builder, context, &events_loop)
let mut window = glutin::WindowedContext::new(window_builder, context, &events_loop)
.expect("Could not create glutin window.");

unsafe {
Expand Down Expand Up @@ -328,7 +328,7 @@ pub fn main() {
}
}

fn handle_window_event(window: &mut glutin::CombinedContext,
fn handle_window_event(window: &mut glutin::WindowedContext,
game: &mut Game,
ui_container: &mut ui::Container,
event: glutin::Event) {
Expand Down

0 comments on commit 0d5c147

Please sign in to comment.