wayland: check for egl extensions explicitly
authornobled <nobled@dreamwidth.org>
Tue, 8 Feb 2011 15:45:39 +0000 (15:45 +0000)
committernobled <nobled@dreamwidth.org>
Tue, 8 Feb 2011 16:15:09 +0000 (16:15 +0000)
commit20b1350614cab53c2ded828cdffc96db3c083ddd
tree9b31150ccc33e0b30c691f036d2fa396e0426884
parente855bc45a266ab72ac1545fadf506d0ae0128c50
wayland: check for egl extensions explicitly

eglGetProcAddress() returns non-null function pointers
whether or not they're actually supported by the driver,
since it can be used before any driver gets loaded. So
we have to check if the extensions are advertised first,
which requires having an initialized display, so we split
the display creation code into its own function.

The exception to extension-checking is EGL_MESA_drm_display,
since by definition it's needed before any display is even
created.
clutter/wayland/clutter-backend-wayland.c