egl: Fix DETECT_OS macro usage

As described in src/util/detect_os.h, the DETECT_OS macros are always
defined to a 0 or 1 value, and they should be used with #if rather
than #ifdef.
Commit 54b7227f15 accidentally disabled those extensions on all
platforms, so enable them again.

Fixes: 54b7227f15 ("egl/wgl: On win32, there is no support for EGL_EXT_device and EGL_EXT_platform_device")

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16751>
This commit is contained in:
Erico Nunes 2022-05-27 20:54:40 +02:00
parent 0d28de212a
commit 7c1498daba
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ struct _egl_global _eglGlobal =
.ClientExtensionString =
#endif
"EGL_EXT_client_extensions"
#ifndef DETECT_OS_WINDOWS
#if !DETECT_OS_WINDOWS
" EGL_EXT_device_base"
" EGL_EXT_device_enumeration"
" EGL_EXT_device_query"
@ -83,7 +83,7 @@ struct _egl_global _eglGlobal =
" "
#endif
#ifndef DETECT_OS_WINDOWS
#if !DETECT_OS_WINDOWS
"EGL_EXT_platform_device"
#endif
#ifdef HAVE_WAYLAND_PLATFORM