`piston_window` error: OpenGlVersionNotSupported

Still can't figure it out.

Doing my own search, I could find (so far):

  • I get "GL context creation failed" when running an example.

    It's likely your hardware or driver doesn't support PistonWindow's default OpenGl spec. Just change it to something you can support at the beginning of the example. See hello_world.rs for an example.

https://github.com/PistonDevelopers/Piston-Tutorials#troubleshooting

And also this thread

Following the discussion there, it might be worth a try to call .graphics_api(OpenGL::V2_1) on the WindowSettings and see if that helps?

    let mut window: PistonWindow = WindowSettings::new(
        "Ping Pong",
        Size {
            width: to_coord(width as f64),
            height: to_coord(height as f64),
        },
    )
    .exit_on_esc(true)
+   .graphics_api(piston_window::OpenGL::V2_1)
    .build()
    .unwrap();
2 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.