Skip to content

wayland: fix ugly shadows in OpenGL windows

Val Packett requested to merge valpackett/gtk:wayland-ugly-shadows into gtk-3-24

Modern Mesa, when asked about EGL buffer formats, returns R10G10B10A2 formats before R8G8B8A8. Two-bit alpha results in ugly non-smooth shadows. Prefer formats with >2-bit alpha for proper looking shadows instead of just picking the first one.


You can see a screenshot at https://github.com/celluloid-player/celluloid/issues/419 (though I've been seeing this for a long time on other applications, e.g. "OpenGL demo" in gtk3-demo.)

Merge request reports