mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	egl: Remove dead code
Display is always NULL here since egl_init is always last to be called.
This commit is contained in:
		
							parent
							
								
									9b8cd1f5d6
								
							
						
					
					
						commit
						91a1797a96
					
				
					 1 changed files with 0 additions and 5 deletions
				
			
		| 
						 | 
					@ -568,11 +568,6 @@ struct wlr_egl *wlr_egl_create_with_drm_fd(int drm_fd) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
error:
 | 
					error:
 | 
				
			||||||
	wlr_log(WLR_ERROR, "Failed to initialize EGL context");
 | 
						wlr_log(WLR_ERROR, "Failed to initialize EGL context");
 | 
				
			||||||
	if (egl->display) {
 | 
					 | 
				
			||||||
		eglMakeCurrent(egl->display, EGL_NO_SURFACE, EGL_NO_SURFACE,
 | 
					 | 
				
			||||||
			EGL_NO_CONTEXT);
 | 
					 | 
				
			||||||
		eglTerminate(egl->display);
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	free(egl);
 | 
						free(egl);
 | 
				
			||||||
	eglReleaseThread();
 | 
						eglReleaseThread();
 | 
				
			||||||
	return NULL;
 | 
						return NULL;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue