meson: avoid changing types for the dri3 option
authorEric Engestrom <eric.engestrom@imgtec.com>
Fri, 23 Feb 2018 17:08:45 +0000 (17:08 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Tue, 27 Feb 2018 11:21:20 +0000 (11:21 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
meson.build

index 40e9c8ff45290d60eecd855ee08343fda80fdf4d..308f64cf81193b4491501dcb1d78061ff19df239 100644 (file)
@@ -371,11 +371,11 @@ if with_vulkan_icd_dir == ''
 endif
 
 with_dri2 = (with_dri or with_any_vk) and with_dri_platform == 'drm'
-with_dri3 = get_option('dri3')
-if with_dri3 == 'auto'
+_dri3 = get_option('dri3')
+if _dri3 == 'auto'
   with_dri3 = system_has_kms_drm and with_dri2
 else
-  with_dri3 = with_dri3 == 'true'
+  with_dri3 = _dri3 == 'true'
 endif
 
 if with_any_vk and (with_platform_x11 and not with_dri3)