diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-12 19:45:51 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-05-17 16:22:43 +0200 |
commit | 9ca743f9fd742e64784feedb718550c9fa8c109d (patch) | |
tree | d46081743ba71547ccdd0185315914fc0289866e /backend | |
parent | a8d7c2d4ea6ee26fe8151dcf5b47ec4350e8ac81 (diff) |
backend/drm: use wlr_texture_from_buffer
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/renderer.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index 818f0521..5ca7ed46 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -18,6 +18,7 @@ #include "render/pixel_format.h" #include "render/swapchain.h" #include "render/wlr_renderer.h" +#include "render/wlr_texture.h" bool init_drm_renderer(struct wlr_drm_backend *drm, struct wlr_drm_renderer *renderer) { @@ -135,12 +136,7 @@ static struct wlr_buffer *drm_surface_blit(struct wlr_drm_surface *surf, return NULL; } - struct wlr_dmabuf_attributes attribs = {0}; - if (!wlr_buffer_get_dmabuf(buffer, &attribs)) { - return NULL; - } - - struct wlr_texture *tex = wlr_texture_from_dmabuf(renderer, &attribs); + struct wlr_texture *tex = wlr_texture_from_buffer(renderer, buffer); if (tex == NULL) { return NULL; } |