meson: fix platforms check for `-D egl=true`
authorEric Engestrom <eric.engestrom@intel.com>
Mon, 4 Jun 2018 10:26:10 +0000 (11:26 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 5 Jun 2018 09:38:57 +0000 (10:38 +0100)
Fixes: 0ed6a87a106b6e2266e0 "meson: fix platforms=[]"
Reported-by: Christoph Haag <haagch@frickel.club>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
meson.build

index 7b7c118d77b11cc38f7b7d05776b030087a6b5be..1d1b2a979b1de80ddd06a601b1624ded972c3388 100644 (file)
@@ -292,7 +292,7 @@ elif _egl == 'true'
     error('EGL requires dri')
   elif not with_shared_glapi
     error('EGL requires shared-glapi')
-  elif with_platforms
+  elif not with_platforms
     error('No platforms specified, consider -Dplatforms=drm,x11 at least')
   elif not ['disabled', 'dri'].contains(with_glx)
     error('EGL requires dri, but a GLX is being built without dri')