Browse Source

Platform: test also for EGL_EXT_device_base.

pull/368/head
Vladimír Vondruš 7 years ago
parent
commit
d1d8db1f54
  1. 6
      src/Magnum/Platform/WindowlessEglApplication.cpp

6
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. */ version parsing from a string. Not feeling like doing that today, no. */
const char* const extensions = eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS); const char* const extensions = eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS);
if(extensions && if(extensions &&
/* eglQueryDevicesEXT() */ /* eglQueryDevicesEXT(). NVidia exposes only EGL_EXT_device_base, which
extensionSupported(extensions, "EGL_EXT_device_enumeration") && 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() */ /* eglGetPlatformDisplayEXT() */
extensionSupported(extensions, "EGL_EXT_platform_base") && extensionSupported(extensions, "EGL_EXT_platform_base") &&

Loading…
Cancel
Save