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.
master
Simon Ser 2 years ago committed by Kirill Primak
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) { if (egl->procs.eglQueryDevicesEXT == NULL) {
wlr_log(WLR_DEBUG, "EGL_EXT_device_enumeration not supported"); wlr_log(WLR_DEBUG, "EGL_EXT_device_enumeration not supported");
return EGL_NO_DEVICE_EXT; 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; EGLint nb_devices = 0;

Loading…
Cancel
Save