bwasty / gltf-viewer

glTF 2.0 Viewer written in Rust
The Unlicense
188 stars 31 forks source link

Fix resize bug on X11, Wayland and Windows. #52

Closed anderejd closed 6 years ago

anderejd commented 6 years ago

Fixes the typical frame buffer inverted squeezy look and feel when missing some important gl call. For some reason it's not needed on macOS, but works fine when explicitly called too.

Tested on:

anderejd commented 6 years ago

Rebased on master.

bwasty commented 6 years ago

Interesting, a few versions ago it was fine on Win10 and Ubuntu 16.04 and only required in headless mode.

anderejd commented 6 years ago

Oh, interesting, could be my driver perhaps or somewhere in between in the stack.

anderejd commented 6 years ago

Should we report it to glutin?

bwasty commented 6 years ago

I'm not sure if it's really a bug or if it's generally the app's responsibility to call gl::Viewport.

anderejd commented 6 years ago

Yeah that was my thinking too. And I'm pretty sure I've run into this specific thing in the past with other projects too.