Remove wildcard dependencies (oops!)

This commit is contained in:
shivshank 2018-07-24 18:13:22 -04:00
parent e6da32862e
commit d12cdb02d7
2 changed files with 5 additions and 4 deletions

View file

@ -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"

View file

@ -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();