[Mesa-dev] [PATCH 3/5] egl/dri2: load libglapi.0.dylib on osx

Emil Velikov emil.l.velikov at gmail.com
Thu Jun 18 11:29:22 PDT 2015


On 18 June 2015 at 06:53, Julien Isorce <julien.isorce at gmail.com> wrote:
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90903
> Signed-off-by: Julien Isorce <j.isorce at samsung.com>
> ---
>  src/egl/drivers/dri2/egl_dri2.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
> index a1cbd43..90b9648 100644
> --- a/src/egl/drivers/dri2/egl_dri2.c
> +++ b/src/egl/drivers/dri2/egl_dri2.c
> @@ -2354,6 +2354,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
Is this enough to get dri modules (suspecting only swrast atm) working
with EGL ?

Note that currently libEGL already explicitly links against libglapi,
so imho we can just drop the whole thing. Haven't really looked but do
we use glFlush() as a workaround or it's something required by the EGL
standard ?

Thanks
Emil


More information about the mesa-dev mailing list