Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies and fix compilation errors #20

Merged
merged 2 commits into from
Sep 30, 2016

Conversation

denis-golubev
Copy link
Contributor

Hey!
Cool 2048 clone! I was not able to compile it with Rust 1.11 due to an old version of crossbeam in the piston dependencies (see crossbeam-rs/crossbeam#75). I updated the piston dependencies in the Cargo.toml file to the latest stable versions.

I changed lines with default_draw_state() to &DrawState::default(). Actually, I am not sure about that change, because I have not worked that much with Piston. That just seemed the most obvious fix.

Another change was the type of the actual window and the specification of the OpenGL version. The documentation at http://docs.piston.rs/piston_window/window/struct.WindowSettings.html suggests, that OpenGL 3.2 is the default version.

Furthermore, the event loop format is different now and I changed it based on the example at http://www.piston.rs/.

Denis

@coeuvre coeuvre merged commit 771bd5f into coeuvre:master Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants