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:
Simon Ser 2023-05-23 20:25:01 +02:00 committed by Kirill Primak
parent 7099fa2ea4
commit 4d634276a4
1 changed files with 3 additions and 0 deletions

View File

@ -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;