mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-13 14:32:57 -04:00
render/egl: try GBM platform if device platform fails to initialize
Mesa could generate EGL devices that cannot be used for eglInitialize(), e.g. in the case of a vmwgfx device w/o 3D acceleration enabled. Continue to try GBM platform instead of bailing out when device platform fails to initialize. This fixes launch of wlroots-based compositors on VirtualBox VMs w/o 3D acceleration enabled. Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
This commit is contained in:
parent
e4a1268b2a
commit
cf535d8590
1 changed files with 1 additions and 2 deletions
|
|
@ -575,9 +575,8 @@ struct wlr_egl *wlr_egl_create_with_drm_fd(int drm_fd) {
|
|||
wlr_log(WLR_DEBUG, "Using EGL_PLATFORM_DEVICE_EXT");
|
||||
return egl;
|
||||
}
|
||||
goto error;
|
||||
}
|
||||
/* Falls back on GBM in case the device was not found */
|
||||
/* Falls back on GBM in case the device was not found or do not work */
|
||||
} else {
|
||||
wlr_log(WLR_DEBUG, "EXT_platform_device not supported");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue