mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-11-16 19:47:55 +01:00
Reset best allocation to NULL
Without this, if no allocation has been found, garbage will be read from alloc.best.
This commit is contained in:
parent
b3eb0e323c
commit
66bedbc854
1 changed files with 1 additions and 0 deletions
|
@ -325,6 +325,7 @@ bool hwc_display_apply(struct hwc_display *display, drmModeAtomicReq *req)
|
|||
* before any other plane. */
|
||||
|
||||
alloc.best_score = 0;
|
||||
memset(alloc.best, 0, alloc.planes_len * sizeof(*alloc.best));
|
||||
if (!output_choose_layers(output, &alloc, display->planes.next,
|
||||
0, 0)) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue