mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-22 06:47:12 -04:00
Merge branch 'github/fork/emersion/renderer-get-texture-formats' into 'master'
render: unify texture format enumeration See merge request wlroots/wlroots!3112
This commit is contained in:
commit
43b4f9e446
12 changed files with 55 additions and 74 deletions
|
|
@ -269,7 +269,7 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
|
|||
// to be able to texture from them
|
||||
struct wlr_renderer *renderer = drm->mgpu_renderer.wlr_rend;
|
||||
const struct wlr_drm_format_set *texture_formats =
|
||||
wlr_renderer_get_dmabuf_texture_formats(renderer);
|
||||
wlr_renderer_get_texture_formats(renderer, WLR_BUFFER_CAP_DMABUF);
|
||||
if (texture_formats == NULL) {
|
||||
wlr_log(WLR_ERROR, "Failed to query renderer texture formats");
|
||||
goto error_mgpu_renderer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue