Hey! First PR to any Piston-related repo.
I found this issue: https://github.com/PistonDevelopers/graphics/issues/1129
As the other issue mentions, the problem is that in some platforms (MacOS and Wayland) the glutin context needs to be resized when the window resizes. Check the docs: https://docs.rs/glutin/0.20.1/glutin/struct.WindowedContext.html#method.resize
I've fixed this problem on MacOS, where I can test the fix. I presume the problem still persists in Wayland.
I'm also pretty new to rust, so happy to change anything to make it idiomatic!
Hey! First PR to any Piston-related repo. I found this issue: https://github.com/PistonDevelopers/graphics/issues/1129 As the other issue mentions, the problem is that in some platforms (MacOS and Wayland) the glutin context needs to be resized when the window resizes. Check the docs: https://docs.rs/glutin/0.20.1/glutin/struct.WindowedContext.html#method.resize I've fixed this problem on MacOS, where I can test the fix. I presume the problem still persists in Wayland. I'm also pretty new to rust, so happy to change anything to make it idiomatic!