egl: error out on eglCreateWaylandBufferFromImageWL
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 15 May 2017 15:14:15 +0000 (16:14 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 29 May 2017 15:59:12 +0000 (16:59 +0100)
commit701311425ee5f2e7b39bcb5e4ef4fa45c01cf836
treee548af5152d03cbe3060574ac628db601f345be8
parent46cc022d5d392802e60415cc2d0da3969c8d6981
egl: error out on eglCreateWaylandBufferFromImageWL

Currently f one does the silly thing by probing the entry point w/o
checking the extension they will attempt to use the extension even
though it cannot work.
That is due our of of an assert which gets removed in release builds.

Simply error out if the extension is not enabled. Thus we can
apply some cleanups with next commits.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/main/eglapi.c