[gfx_examples] Update glutin to 0.19.0

Attempt to fix #172 for gfx back-end.
This commit is contained in:
Malik Olivier Boussejra 2018-12-01 17:57:01 +09:00
parent 0440752e0b
commit 7268d35be7
3 changed files with 5 additions and 5 deletions

View File

@ -10,8 +10,8 @@ publish = false
[dev-dependencies]
gfx = "0.17"
gfx_window_glutin = "0.26"
glutin = "0.18"
gfx_window_glutin = "0.27"
glutin = "0.19"
imgui = { version = "0.0.22-pre", path = "../" }
imgui-gfx-renderer = { version = "0.0.22-pre", path = "../imgui-gfx-renderer" }
imgui-glutin-support = { version = "0.0.22-pre", path = "../imgui-glutin-support" }

View File

@ -6,7 +6,7 @@ use std::time::Instant;
pub fn run<F: FnMut(&Ui) -> bool>(title: String, clear_color: [f32; 4], mut run_ui: F) {
use gfx::{self, Device};
use gfx_window_glutin;
use glutin::{self, GlContext};
use glutin;
type ColorFormat = gfx::format::Rgba8;
type DepthFormat = gfx::format::DepthStencil;
@ -140,7 +140,7 @@ pub fn run<F: FnMut(&Ui) -> bool>(title: String, clear_color: [f32; 4], mut run_
.render(ui, &mut factory, &mut encoder)
.expect("Rendering failed");
encoder.flush(&mut device);
window.context().swap_buffers().unwrap();
window.swap_buffers().unwrap();
device.cleanup();
}
}

View File

@ -12,5 +12,5 @@ categories = ["gui"]
travis-ci = { repository = "Gekkio/imgui-rs" }
[dependencies]
glutin = ">= 0.17, <= 0.18"
glutin = ">= 0.17, <= 0.19"
imgui = { version = "0.0.22-pre", path = "../" }