[vlc-devel] [PATCH 1/2] egl: Import GLES symbols with a direct library dlopen

Rémi Denis-Courmont remi at remlab.net
Tue May 22 17:14:32 CEST 2018

Le tiistaina 22. toukokuuta 2018, 18.03.06 EEST Thomas Guillem a écrit :
> On Tue, May 22, 2018, at 16:59, Rémi Denis-Courmont wrote:
> > Le tiistaina 22. toukokuuta 2018, 17.32.43 EEST Paul Kocialkowski a écrit 
> > > It appears that some EGL blobs (usually used with GLES) don't expose all
> > > the required core GLES API functions through eglGetProcAddress.
> > 
> > AFAICT, this is undefined behaviour. This might be fine for an embedded
> > build where you know the bugs in your driver, but it looks totally unsafe
> > in general, and therefore unacceptable in upstream VLC.
> cf.
> https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_get_all_proc_ad
> dresses.txt eglGetProcAddress() is only required to resolve non-extension
> symbols (so core only).

Yes so it says:
| eglGetProcAddress is currently defined to not support the querying
| of non-extension EGL or client API functions.

In other words, eglGetProcAddress is currently defined to support the querying 
of EGL or client API functions only if they are extensions.

> And VLC uses eglGetProcAddress() to fetch extension symbols.

And that is perfectly correct, and necessary, as we cannot rely on extension 
symbols at build or load times.


More information about the vlc-devel mailing list