mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/wayland: don't set EGL visual
The Wayland platform doesn't have visuals. By chance, WL_SHM_FORMAT_ARGB8888 is zero, which means egl_get_config was ignoring it and everything worked fine.
This commit is contained in:
		
							parent
							
								
									713c1661b7
								
							
						
					
					
						commit
						6485fadc16
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -316,7 +316,7 @@ struct wlr_backend *wlr_wl_backend_create(struct wl_display *display,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wl->renderer = create_renderer_func(&wl->egl, EGL_PLATFORM_WAYLAND_EXT,
 | 
						wl->renderer = create_renderer_func(&wl->egl, EGL_PLATFORM_WAYLAND_EXT,
 | 
				
			||||||
		wl->remote_display, config_attribs, WL_SHM_FORMAT_ARGB8888);
 | 
							wl->remote_display, config_attribs, 0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!wl->renderer) {
 | 
						if (!wl->renderer) {
 | 
				
			||||||
		wlr_log(WLR_ERROR, "Could not create renderer");
 | 
							wlr_log(WLR_ERROR, "Could not create renderer");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue