mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-18 06:59:44 -05:00
Backport screenshooter fixes from the renderer redesign v1
This backports some changes to #319 to fix the screenshooter data format. This also adds wlr_backend_get_renderer which will be useful to support multiple renderers.
This commit is contained in:
parent
03440bbd83
commit
4fa90b0511
21 changed files with 178 additions and 97 deletions
|
|
@ -2,7 +2,10 @@
|
|||
#include <GLES2/gl2ext.h>
|
||||
#include "render/gles2.h"
|
||||
|
||||
// Adapted from weston
|
||||
/*
|
||||
* The wayland formats are little endian while the GL formats are big endian,
|
||||
* so WL_SHM_FORMAT_ARGB8888 is actually compatible with GL_BGRA_EXT.
|
||||
*/
|
||||
struct pixel_format formats[] = {
|
||||
{
|
||||
.wl_format = WL_SHM_FORMAT_ARGB8888,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue