mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01: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
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue