[Mesa-dev] [PATCH] egl: Introduce eglGetDisplayMESA()

Kristian Høgsberg krh at bitplanet.net
Fri May 28 16:56:43 PDT 2010


> Kristian Høgsberg wrote:
>
>> Since an application needs to have an EGLDisplay before it can query
>> for extensions, the way to discover this extension is to just use
>> eglGetProcAddress().
>
> Eh... but eglGetProcAddress never returns NULL, does it?  I know
> glXGetProcAddress never does.

eglGetProcAddress returns NULL when the function is not available.
Chapter 3.11:

"A return value of NULL indicates that the specified function does not exist
for the implementation."

So I think that should work ok.  Did the rest of the spec look ok to you?

Kristian


More information about the mesa-dev mailing list