OSDN Git Service

meson: remove unreachable with_glx == 'auto' check
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 23 Feb 2018 19:32:02 +0000 (19:32 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 29 May 2018 15:31:46 +0000 (16:31 +0100)
Cannot happen since, props to the autodetection further up.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
meson.build

index d0cb896..d4f460e 100644 (file)
@@ -344,11 +344,7 @@ endif
 pre_args += '-DGLX_USE_TLS'
 if with_glx != 'disabled'
   if not (with_platform_x11 and with_any_opengl)
-    if with_glx == 'auto'
-      with_glx = 'disabled'
-    else
-      error('Cannot build GLX support without X11 platform support and at least one OpenGL API')
-    endif
+    error('Cannot build GLX support without X11 platform support and at least one OpenGL API')
   elif with_glx == 'gallium-xlib' 
     if not with_gallium
       error('Gallium-xlib based GLX requires at least one gallium driver')