mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
wlr_scene: Force blend mode to PREMULTIPLIED if calculate visibility is disabled
We do it here so WLR_SCENE_HIGHLIGHT_TRANSPARENT_REGION doesn't break
This commit is contained in:
parent
6261bd9684
commit
4481c6b243
1 changed files with 2 additions and 1 deletions
|
|
@ -1242,7 +1242,8 @@ static void scene_entry_render(struct render_list_entry *entry, const struct ren
|
||||||
.clip = &render_region,
|
.clip = &render_region,
|
||||||
.alpha = &scene_buffer->opacity,
|
.alpha = &scene_buffer->opacity,
|
||||||
.filter_mode = scene_buffer->filter_mode,
|
.filter_mode = scene_buffer->filter_mode,
|
||||||
.blend_mode = pixman_region32_not_empty(&opaque) ?
|
.blend_mode = !data->output->scene->calculate_visibility ||
|
||||||
|
pixman_region32_not_empty(&opaque) ?
|
||||||
WLR_RENDER_BLEND_MODE_PREMULTIPLIED : WLR_RENDER_BLEND_MODE_NONE,
|
WLR_RENDER_BLEND_MODE_PREMULTIPLIED : WLR_RENDER_BLEND_MODE_NONE,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue