mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	output: add a swapchain NULL check in wlr_output_commit_state()
Fixes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3504
This commit is contained in:
		
							parent
							
								
									46a686ce6b
								
							
						
					
					
						commit
						ff9c52801f
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -817,7 +817,8 @@ bool wlr_output_commit_state(struct wlr_output *output,
 | 
			
		|||
		output->needs_frame = false;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (pending.committed & WLR_OUTPUT_STATE_BUFFER) {
 | 
			
		||||
	if ((pending.committed & WLR_OUTPUT_STATE_BUFFER) &&
 | 
			
		||||
			output->swapchain != NULL) {
 | 
			
		||||
		wlr_swapchain_set_buffer_submitted(output->swapchain, pending.buffer);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue