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:
Simon Ser 2022-08-03 23:00:13 +02:00
parent 4d6989b389
commit 1d425f542c

View file

@ -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 */
}