mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-02-19 18:53:05 +00:00
render/egl: check for EGL_EXT_device_query in get_egl_device_from_drm_fd()
We use eglQueryDeviceStringEXT() later on, which is optional and requires support for the EGL_EXT_device_query extension.
This commit is contained in:
parent
7099fa2ea4
commit
4d634276a4
@ -444,6 +444,9 @@ static EGLDeviceEXT get_egl_device_from_drm_fd(struct wlr_egl *egl,
|
||||
if (egl->procs.eglQueryDevicesEXT == NULL) {
|
||||
wlr_log(WLR_DEBUG, "EGL_EXT_device_enumeration not supported");
|
||||
return EGL_NO_DEVICE_EXT;
|
||||
} else if (!egl->exts.EXT_device_query) {
|
||||
wlr_log(WLR_DEBUG, "EGL_EXT_device_query not supported");
|
||||
return EGL_NO_DEVICE_EXT;
|
||||
}
|
||||
|
||||
EGLint nb_devices = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user