diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-06-19 13:16:34 -0400 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-06-19 13:16:34 -0400 |
commit | 2044cc2311ad534f8f188f8d486f1ce7aa3e1421 (patch) | |
tree | 975c5b3e8c7045f8d8d01deba7d33c16c570f283 /render/vulkan | |
parent | 693005ac99cfdab5a71c4a689932f13134b0c729 (diff) |
render: Introduce wlr_render_texture_options.blend_mode
Diffstat (limited to 'render/vulkan')
-rw-r--r-- | render/vulkan/pass.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/render/vulkan/pass.c b/render/vulkan/pass.c index 7ac5cf95..bfb3628f 100644 --- a/render/vulkan/pass.c +++ b/render/vulkan/pass.c @@ -550,6 +550,8 @@ static void render_pass_add_texture(struct wlr_render_pass *wlr_pass, .filter_mode = options->filter_mode, }, .texture_transform = texture->transform, + .blend_mode = !texture->has_alpha && alpha == 1.0 ? + WLR_RENDER_BLEND_MODE_NONE : options->blend_mode, }); if (!pipe) { pass->failed = true; |