Skip to content

render/gles2: remove assumptions about supported formats

Simon Ser requested to merge github/fork/emersion/check-gles2-bgra-ext into master

We were assuming GL_BGRA_EXT was always supported.

We now check that it's supported for rendering. We fail if it isn't because this format is specified as "always supported" by the Wayland protocol.

We also check if it's supported for reading pixels. A new preferred_read_format function returns the preferred format that can be used to read pixels. This is used by the screencopy protocol.

Fixes https://github.com/swaywm/wlroots/issues/1348 Fixes https://github.com/swaywm/wlroots/issues/1349

Merge request reports