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,7 +484,6 @@ 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')
@@ -494,6 +493,7 @@ if egl_native_platform.contains('auto')
egl_native_platform = 'surfaceless'
endif
endif
endif
if with_egl and not _platforms.contains(egl_native_platform)
error('-Degl-native-platform does not specify an enabled platform')