mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
menu,xbm: chase swaywm/wlroots@27fba3df43
$ 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 66343839b1
This commit is contained in:
parent
ad07acc13c
commit
c9023dd2c6
2 changed files with 4 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#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>
|
||||
|
|
@ -61,7 +62,7 @@ texture_create(struct server *server, struct wlr_box *geo, const char *text,
|
|||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue