mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Clean up the gbm/egl as well
This commit is contained in:
		
							parent
							
								
									2cdb646531
								
							
						
					
					
						commit
						cde0f454b3
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -75,6 +75,10 @@ bool wlr_drm_surface_init(struct wlr_drm_surface *surf,
 | 
				
			||||||
			gbm_surface_release_buffer(surf->gbm, surf->back);
 | 
								gbm_surface_release_buffer(surf->gbm, surf->back);
 | 
				
			||||||
			surf->back = NULL;
 | 
								surf->back = NULL;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							gbm_surface_destroy(surf->gbm);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if (surf->egl) {
 | 
				
			||||||
 | 
							eglDestroySurface(surf->renderer->egl.display, surf->egl);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	surf->gbm = gbm_surface_create(renderer->gbm, width, height,
 | 
						surf->gbm = gbm_surface_create(renderer->gbm, width, height,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue