thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "wglCreateContextAttribsARB failed: OS Error -1073274731 (FormatMessageW() returned error 317) (os error -1073274731)"', ../src/libcore\result.rs:788
the code is:
extern crate piston_window;
use piston_window::*;
fn main() {
let window: PistonWindow =
WindowSettings::new("Piston!", [300, 300])
.build()
.unwrap();
}
I have the same problem on my Windows 10 laptop. I use the latest piston_window version (tried several older versions though (0.44), but still the problem is reproducible).
error message is as follows:
the code is:
Most probably related to https://github.com/tomaka/glium/issues/1450