mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 09:59:48 +01:00
egl: use alts for EGL_EXT_device_enum, if missing
This commit is contained in:
parent
02a1ae169e
commit
3a685b10b6
1 changed files with 2 additions and 2 deletions
|
@ -189,11 +189,11 @@ static struct wlr_egl *egl_create(void) {
|
|||
egl->exts.EXT_platform_device = check_egl_ext(client_exts_str,
|
||||
"EGL_EXT_platform_device");
|
||||
|
||||
if (check_egl_ext(client_exts_str, "EGL_EXT_device_enumeration")) {
|
||||
if (check_egl_ext(client_exts_str, "EGL_EXT_device_base") || check_egl_ext(client_exts_str, "EGL_EXT_device_enumeration")) {
|
||||
load_egl_proc(&egl->procs.eglQueryDevicesEXT, "eglQueryDevicesEXT");
|
||||
}
|
||||
|
||||
if (check_egl_ext(client_exts_str, "EGL_EXT_device_query")) {
|
||||
if (check_egl_ext(client_exts_str, "EGL_EXT_device_base") || check_egl_ext(client_exts_str, "EGL_EXT_device_query")) {
|
||||
egl->exts.EXT_device_query = true;
|
||||
load_egl_proc(&egl->procs.eglQueryDeviceStringEXT,
|
||||
"eglQueryDeviceStringEXT");
|
||||
|
|
Loading…
Reference in a new issue