Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

bugfix: add null check on output gbm on pageflip #34

Merged
merged 1 commit into from
Jul 25, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/drm/drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ static void page_flip_handler(int fd, unsigned seq,
struct wlr_backend_state *state =
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]);
output->bo[1] = NULL;
}
Expand Down