glx: omit loader_loader() for macOS
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 7 Apr 2020 16:45:33 +0000 (17:45 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 15 Apr 2020 11:37:21 +0000 (11:37 +0000)
commit22406da75671438bf9de68bc47e2b8871e5fa3e6
treebfc3e38a8ce63441dac19c8142a2640500d2bf85
parent471fd41e84e1a19b970c86d8d8a23e1996cd7483
glx: omit loader_loader() for macOS

Earlier commit added the code unconditionally, since the loader code
itself is already built on macOS.
Although it did not consider the #include mayhem that src/glx is.

In particular, none of the __GLXDRI{screen,context,drawable) are
available for macOS... those are pulled by dri_common.[ch].

Ideally we'll untangle that, but for the time being simply #ifdef out
the include/call.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2726
Fixes: b699d070a6d ("glx: set the loader_logger early and for everyone")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4490>
src/glx/glxext.c