$ labwc
[...]
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.064 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.064 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.064 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.064 [render/gles2/texture.c:162] Unsupported pixel format 0x0
Based on https://github.com/swaywm/sway/commit/
66343839b146
#include <assert.h>
#include <cairo/cairo.h>
#include <ctype.h>
+#include <drm_fourcc.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <pango/pangocairo.h>
cairo_surface_flush(surf);
unsigned char *data = cairo_image_surface_get_data(surf);
struct wlr_texture *texture = wlr_texture_from_pixels(server->renderer,
- WL_SHM_FORMAT_ARGB8888, cairo_image_surface_get_stride(surf),
+ DRM_FORMAT_ARGB8888, cairo_image_surface_get_stride(surf),
geo->width, geo->height, data);
cairo_destroy(cairo);
#include <stdio.h>
#include <stdlib.h>
+#include <drm_fourcc.h>
#include "common/dir.h"
#include "common/grab-file.h"
if (!pixmap) {
return NULL;
}
- return wlr_texture_from_pixels(renderer, WL_SHM_FORMAT_ARGB8888,
+ return wlr_texture_from_pixels(renderer, DRM_FORMAT_ARGB8888,
pixmap->width * 4, pixmap->width,
pixmap->height, pixmap->data);
}