gl-renderer: call supports() automatically in create()
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Tue, 24 Mar 2015 12:12:04 +0000 (13:12 +0100)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 26 Mar 2015 07:54:49 +0000 (09:54 +0200)
commit74eed3110874ef1e45234519a82aab57668dc3dc
treec0a72972418ad05c8a74cb169db817fc3ff00352
parentace6920912bb96818960f411175de8b52b6b69ce
gl-renderer: call supports() automatically in create()

This means compositors don't need to call supports() manually and
create() will just return -1 in the failure case as before. This also
means we can deal with the case of eglGetProcAddress returning
non-NULL but not actually being available at runtime.

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/compositor-drm.c
src/compositor-fbdev.c
src/compositor-wayland.c
src/compositor-x11.c
src/gl-renderer.c
src/gl-renderer.h