Skip to content

Wayland scaled display issue #404

@dazoe

Description

@dazoe

Display scaling on Wayland seems to cause problems.
I run with my display scaled to 110%
When running the gl41core-cube example with wayland build tag the cube renders in the lower left corner.
The x11 version looked normal.
After investigating I found out the x11 version wasn't actually normal because it was only 5% smaller.
The wayland version was scaling the frame buffer to 2x instead of just 1.1x like x11
Adding a FramebufferSizeCallback and changing setting gl.Viewport corrects the example.

Is wayland scaling to 2x instead of 1.1x intended behavior? Or is it due to upstream support?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions