mirror of https://gitlab.freedesktop.org/mesa/mesa
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:
parent
9ad375bdcd
commit
2351c0aded
14
meson.build
14
meson.build
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue