diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-06-19 12:48:07 -0400 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-06-19 13:16:35 -0400 |
commit | e8887f76ed3eb683b7d4644289615aafb47fafa6 (patch) | |
tree | 61f6cbcdac8b447b570297aa9b44f99652e2519b /backend | |
parent | 2044cc2311ad534f8f188f8d486f1ce7aa3e1421 (diff) |
backend/drm: Use texture blend_mode for multigpu blit
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/renderer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index 1c8e48d1..56468960 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -108,12 +108,9 @@ struct wlr_buffer *drm_surface_blit(struct wlr_drm_surface *surf, goto error_dst; } - wlr_render_pass_add_rect(pass, &(struct wlr_render_rect_options){ - .box = { .width = dst->width, .height = dst->height }, - .blend_mode = WLR_RENDER_BLEND_MODE_NONE, - }); wlr_render_pass_add_texture(pass, &(struct wlr_render_texture_options){ .texture = tex, + .blend_mode = WLR_RENDER_BLEND_MODE_NONE, }); if (!wlr_render_pass_submit(pass)) { wlr_log(WLR_ERROR, "Failed to submit multi-GPU render pass"); |