Skip to content
Commit 71616edc authored by Loïc Yhuel's avatar Loïc Yhuel Committed by Marius Vlad
Browse files

gl-renderer: use correct read-back format and support WL_SHM_FORMAT_ABGR8888



PIXMAN_a8r8g8b8 / PIXMAN_a8b8g8r8 only matches GL_BGRA_EXT / GL_BGRA on little-endian.
So to have a GL format, we should use DRM_FORMAT_ARGB8888 / DRM_FORMAT_ABGR8888.

Without GL_EXT_read_format_bgra, the read-back format is DRM_FORMAT_ABGR8888.
Then weston-screenshooter fails to create a wl_shm buffer with WL_SHM_FORMAT_ABGR8888,
unless it has been added with wl_display_add_shm_format.

Signed-off-by: default avatarLoïc Yhuel <loic.yhuel@softathome.com>
parent 8ac621d6
Loading
Loading
Loading
Pipeline #986480 passed with stages
in 2 minutes and 45 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment