mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	scene: check wlr_renderer_begin return value
This commit is contained in:
		
							parent
							
								
									45159f8708
								
							
						
					
					
						commit
						48541d2f2e
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -1538,7 +1538,11 @@ bool wlr_scene_output_commit(struct wlr_scene_output *scene_output) {
 | 
				
			||||||
		return true;
 | 
							return true;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wlr_renderer_begin(renderer, output->width, output->height);
 | 
						if (!wlr_renderer_begin(renderer, output->width, output->height)) {
 | 
				
			||||||
 | 
							pixman_region32_fini(&damage);
 | 
				
			||||||
 | 
							wlr_output_rollback(output);
 | 
				
			||||||
 | 
							return false;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pixman_region32_t background;
 | 
						pixman_region32_t background;
 | 
				
			||||||
	pixman_region32_init(&background);
 | 
						pixman_region32_init(&background);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue