egl/dri2: load libglapi.0.dylib on osx
authorJulien Isorce <julien.isorce@gmail.com>
Thu, 18 Jun 2015 05:53:52 +0000 (06:53 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 8 Jul 2015 12:19:33 +0000 (13:19 +0100)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90903
Signed-off-by: Julien Isorce <j.isorce@samsung.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/egl/drivers/dri2/egl_dri2.c

index 400ee635e7794d80966c1ca77ad7324ebdcbbe81..65194cb990cef07e493a7381e4204e9c1f9c323c 100644 (file)
@@ -2368,6 +2368,8 @@ dri2_load(_EGLDriver *drv)
 #ifdef HAVE_SHARED_GLAPI
 #ifdef HAVE_ANDROID_PLATFORM
    const char *libname = "libglapi.so";
+#elif defined(__APPLE__)
+   const char *libname = "libglapi.0.dylib";
 #else
    const char *libname = "libglapi.so.0";
 #endif