From d1d8db1f54a232942d224ff046bebab5025c19d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 21 Aug 2019 00:27:58 +0200 Subject: [PATCH] Platform: test also for EGL_EXT_device_base. --- src/Magnum/Platform/WindowlessEglApplication.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Platform/WindowlessEglApplication.cpp b/src/Magnum/Platform/WindowlessEglApplication.cpp index a206ff0b5..7cfe81edb 100644 --- a/src/Magnum/Platform/WindowlessEglApplication.cpp +++ b/src/Magnum/Platform/WindowlessEglApplication.cpp @@ -71,8 +71,10 @@ WindowlessEglContext::WindowlessEglContext(const Configuration& configuration, G version parsing from a string. Not feeling like doing that today, no. */ const char* const extensions = eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS); if(extensions && - /* eglQueryDevicesEXT() */ - extensionSupported(extensions, "EGL_EXT_device_enumeration") && + /* eglQueryDevicesEXT(). NVidia exposes only EGL_EXT_device_base, which + is an older version of EGL_EXT_device_enumeration before it got + split to that and EGL_EXT_device_query, so test for both. */ + (extensionSupported(extensions, "EGL_EXT_device_enumeration") || extensionSupported(extensions, "EGL_EXT_device_base")) && /* eglGetPlatformDisplayEXT() */ extensionSupported(extensions, "EGL_EXT_platform_base") &&