mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 16:42:26 +00:00
Merge pull request #34 from acrisci/bug/fix-cleanup-pageflip-race
bugfix: add null check on output gbm on pageflip
This commit is contained in:
commit
b1ec0dce3a
@ -631,7 +631,7 @@ static void page_flip_handler(int fd, unsigned seq,
|
|||||||
struct wlr_backend_state *state =
|
struct wlr_backend_state *state =
|
||||||
wl_container_of(output->renderer, state, renderer);
|
wl_container_of(output->renderer, state, renderer);
|
||||||
|
|
||||||
if (output->bo[1]) {
|
if (output->gbm && output->bo[1]) {
|
||||||
gbm_surface_release_buffer(output->gbm, output->bo[1]);
|
gbm_surface_release_buffer(output->gbm, output->bo[1]);
|
||||||
output->bo[1] = NULL;
|
output->bo[1] = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user