PistonDevelopers / gfx_graphics

A Gfx 2D back-end for the Piston game engine
MIT License
55 stars 32 forks source link

Examples behaving weirdly on resize #208

Open bvssvni opened 9 years ago

bvssvni commented 9 years ago

This seems to happen only with Glutin on OSX.

kvark commented 9 years ago

Dupe of #206?

bvssvni commented 9 years ago

I'm updating the size in piston_window. Need to investigate this closer.

kvark commented 9 years ago

I see.

bvssvni commented 9 years ago

This is not a problem on SDL2.

bvssvni commented 9 years ago

This is still a problem when using Glutin.

bvssvni commented 9 years ago

I have managed to replicate the bug by modifying the piston-examples/image to use gfx_graphics on both Glutin and SDL2. Suspecting this got something to do with setting up viewport correctly on resize.

bvssvni commented 9 years ago

This is probably caused by Glutin not receiving resize events on OSX.

kvark commented 9 years ago

Thanks @bvssvni this explains it. I'm still not a fan of using "fake" output though.