mirror of
https://github.com/italicsjenga/mini_gl_fb.git
synced 2024-11-22 23:41:30 +11:00
Remove wildcard dependencies (oops!)
This commit is contained in:
parent
e6da32862e
commit
d12cdb02d7
|
@ -1,11 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "mini_gl_fb"
|
name = "mini_gl_fb"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
authors = ["shivshank"]
|
authors = ["shivshank"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
glutin = "*"
|
glutin = "0.17.0"
|
||||||
gl = "*"
|
gl = "0.10.0"
|
||||||
|
|
||||||
[dependencies.rustic_gl]
|
[dependencies.rustic_gl]
|
||||||
git = "https://github.com/shivshank/rustic_gl.git"
|
git = "https://github.com/shivshank/rustic_gl.git"
|
||||||
|
|
|
@ -8,6 +8,7 @@ extern crate rustic_gl;
|
||||||
extern crate gl;
|
extern crate gl;
|
||||||
|
|
||||||
use glutin::GlContext;
|
use glutin::GlContext;
|
||||||
|
use glutin::dpi::LogicalSize;
|
||||||
|
|
||||||
use gl::types::*;
|
use gl::types::*;
|
||||||
|
|
||||||
|
@ -19,7 +20,7 @@ pub fn gotta_go_fast<S: ToString>(window_title: S, window_width: i32, window_hei
|
||||||
let events_loop = glutin::EventsLoop::new();
|
let events_loop = glutin::EventsLoop::new();
|
||||||
let window = glutin::WindowBuilder::new()
|
let window = glutin::WindowBuilder::new()
|
||||||
.with_title(window_title.to_string())
|
.with_title(window_title.to_string())
|
||||||
.with_dimensions(window_width as _, window_height as _);
|
.with_dimensions(LogicalSize::new(window_width as _, window_height as _));
|
||||||
let context = glutin::ContextBuilder::new();
|
let context = glutin::ContextBuilder::new();
|
||||||
let gl_window = glutin::GlWindow::new(window, context, &events_loop).unwrap();
|
let gl_window = glutin::GlWindow::new(window, context, &events_loop).unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue