mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-11-16 19:47:55 +01:00
plane: ignore pixel blend mode when set to Pre-multiplied
This behaves the same when the property isn't supported.
This commit is contained in:
parent
4d6989b389
commit
1d425f542c
1 changed files with 4 additions and 0 deletions
4
plane.c
4
plane.c
|
@ -250,6 +250,10 @@ plane_apply(struct liftoff_plane *plane, struct liftoff_layer *layer,
|
|||
layer_prop->value == 0) {
|
||||
continue; /* Layer uses default scaling filter */
|
||||
}
|
||||
if (strcmp(layer_prop->name, "pixel blend mode") == 0 &&
|
||||
layer_prop->value == 0) {
|
||||
continue; /* Layer uses pre-multiplied alpha */
|
||||
}
|
||||
if (strcmp(layer_prop->name, "FB_DAMAGE_CLIPS") == 0) {
|
||||
continue; /* Damage can be omitted */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue