mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-11-16 19:47:55 +01:00
Fix disabled layers forcing realloc
This commit is contained in:
parent
2f461be62c
commit
63c6043b15
1 changed files with 4 additions and 0 deletions
4
alloc.c
4
alloc.c
|
@ -562,6 +562,10 @@ layer_needs_realloc(struct liftoff_layer *layer)
|
|||
* attributes didn't change, we can try to re-use the previous
|
||||
* allocation. */
|
||||
if (strcmp(prop->name, "FB_ID") == 0) {
|
||||
if (prop->value == 0 && prop->prev_value == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (prop->value == 0 || prop->prev_value == 0) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue