glx: mandate xf86vidmode only for "drm" dri platforms
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 11 Dec 2018 16:20:40 +0000 (16:20 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 13 Dec 2018 17:38:19 +0000 (17:38 +0000)
commita95ec13879d4f04d01fc04a62503578e85c846a8
tree79517d0c97196a2bddf9ed5bbb662a4ca424bc26
parentc7bdcd67aaa39338440fcfee6d679919411feb08
glx: mandate xf86vidmode only for "drm" dri platforms

Currently we have the three dri "platforms" - drm, apple and windows.

Since xf86vidmode is a thing only for the drm one, adjust the
preprocessor guards and correctly check for the dependency.

v2: terminate the GLX_USE_WINDOWSGL hunk

Cc: Jon TURNEY <jon.turney@dronecode.org.uk>
Fixes: 5bc509363b6 ("glx: make xf86vidmode mandatory for direct rendering")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
configure.ac
meson.build
src/glx/glxcmds.c