mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05: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…
	
	Add table
		Add a link
		
	
		Reference in a new issue