New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offset rendering on Linux since glutin upgrade #1657
Comments
Probably a HiDPI issue, as always. |
I have large monitors (2 * 2560x1440), but they're not HiDPI by the normal standards, nor do I have any scaling config as far as I can remember. Issue happens in Gnome and in i3, which should use different scaling settings.
|
Reverting the change to the X11 window Not sure if that's the real problem or if the change was intentional and the problem is elsewhere. |
Hmm, maybe glium applies the HiDPI stuff on top of glutin. |
I've been trying to replicate this on my computer running Ubuntu 16.10, but I haven't found any setting which makes DPI reported by xdpyinfo anything other than 96x96. Was there some setting you had to change to get it to 108x107 that I could also change? |
Ah cool! I can also reproduce this now with |
Alright, thank you! I think I've found the culprit in glium: it accounts for This was much easier to find with the commit you found, @spearman and the isolation of the issue to the winit upgrade and dpi scaling you found, @FauxFaux. This seems to really be just winit making a breaking change in what |
Since 5de27b0 ("update glutin and gl_generator"), on Ubuntu Artful (16.10) with
nvidia-384
, things render off-centre. Here's thecargo run --example image
:Here's what it should look like. Same machine, but glium at commit 63577da, before the updates. Note the (r) to the right of the L, and the even margin:
It's nothing to do with the window size, it happens at all sizes; the discrepancies in the above screenshots are my laziness.
Not super visually significant in this example, but presumably related to PistonDevelopers/conrod#1120 which is awful.
I am still unable to find a pure glutin example that shows the same behaviour.
The text was updated successfully, but these errors were encountered: