mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 18:09:49 +01:00
backend/drm: fix segfault in drm_crtc_page_flip
When no cursor plane is available, drm_crtc_page_flip would segfault.
This commit is contained in:
parent
8b18d389b3
commit
42e485dcc3
1 changed files with 3 additions and 1 deletions
|
@ -359,7 +359,9 @@ static bool drm_crtc_page_flip(struct wlr_drm_connector *conn) {
|
|||
|
||||
conn->pageflip_pending = true;
|
||||
drm_fb_move(&crtc->primary->queued_fb, &crtc->primary->pending_fb);
|
||||
drm_fb_move(&crtc->cursor->queued_fb, &crtc->cursor->pending_fb);
|
||||
if (crtc->cursor != NULL) {
|
||||
drm_fb_move(&crtc->cursor->queued_fb, &crtc->cursor->pending_fb);
|
||||
}
|
||||
wlr_output_update_enabled(&conn->output, true);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue