mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	render/egl: skip incompatible EGL devices
Without EGL_EXT_device_drm, eglQueryDeviceStringEXT(EGL_DRM_DEVICE_FILE_EXT) further below is invalid.
This commit is contained in:
		
							parent
							
								
									822eb07eac
								
							
						
					
					
						commit
						c73e20628a
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -446,6 +446,11 @@ static EGLDeviceEXT get_egl_device_from_drm_fd(struct wlr_egl *egl,
 | 
			
		|||
		return EGL_NO_DEVICE_EXT;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (!egl->exts.EXT_device_drm) {
 | 
			
		||||
		wlr_log(WLR_DEBUG, "EGL_EXT_device_drm not supported");
 | 
			
		||||
		return EGL_NO_DEVICE_EXT;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	EGLint nb_devices = 0;
 | 
			
		||||
	if (!egl->procs.eglQueryDevicesEXT(0, NULL, &nb_devices)) {
 | 
			
		||||
		wlr_log(WLR_ERROR, "Failed to query EGL devices");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue