diff options
author | Simon Ser <contact@emersion.fr> | 2023-05-23 20:25:01 +0200 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2023-05-24 13:06:19 +0000 |
commit | 4d634276a47e524165bc8a7f62a56d88bf404a75 (patch) | |
tree | 2175c385a8c0a77746c9ef6208fbc05cb1634ccc /render/egl.c | |
parent | 7099fa2ea409051d9c894d6bd7e4cbd9e921ec10 (diff) |
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.
Diffstat (limited to 'render/egl.c')
-rw-r--r-- | render/egl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/render/egl.c b/render/egl.c index 70596c75..e21755b6 100644 --- a/render/egl.c +++ b/render/egl.c @@ -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; |