mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-18 00:48:32 +00:00
[gfx_examples] Update glutin to 0.19.0
Attempt to fix #172 for gfx back-end.
This commit is contained in:
parent
0440752e0b
commit
7268d35be7
@ -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" }
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 = "../" }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user