meson: move egl_native_platform definition inside the with_egl block

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13278>
This commit is contained in:
Eric Engestrom
2021-10-09 11:29:45 +01:00
committed by Marge Bot
parent 9ad375bdcd
commit 2351c0aded

View File

@@ -484,14 +484,14 @@ if with_egl
if with_gbm and not with_platform_android
_platforms += 'drm'
endif
endif
egl_native_platform = get_option('egl-native-platform')
if egl_native_platform.contains('auto')
if _platforms.length() != 0
egl_native_platform = _platforms[0]
else
egl_native_platform = 'surfaceless'
egl_native_platform = get_option('egl-native-platform')
if egl_native_platform.contains('auto')
if _platforms.length() != 0
egl_native_platform = _platforms[0]
else
egl_native_platform = 'surfaceless'
endif
endif
endif