Test the EGL wayland platform extensions before using them

The Khronos headers may be recent enough to have the ifdefs but
implementation might still be missing on some platforms.
Don't use the extensions unless the configure test passes.

Change-Id: I23129115729567fa92bc23da099d27df598fc206
Reviewed-by: James McDonnell <jmcdonnell@blackberry.com>
This commit is contained in:
Samuli Piippo 2020-02-26 16:14:30 +02:00
parent f5e071ee2c
commit ecd7d9658d

View File

@ -231,9 +231,14 @@
"condition": "features.wayland-client",
"output": [ "privateFeature" ]
},
"egl-extension-platform-wayland": {
"label": "EGL wayland platform extension",
"condition": "features.wayland-client && features.opengl && features.egl && tests.egl_1_5-wayland",
"output": [ "privateFeature" ]
},
"wayland-egl": {
"label": "EGL",
"condition": "features.wayland-client && features.opengl && features.egl && libs.wayland-egl && (!config.qnx || tests.egl_1_5-wayland)",
"condition": "features.wayland-client && features.opengl && features.egl && libs.wayland-egl && (!config.qnx || features.egl-extension-platform-wayland)",
"output": [ "privateFeature" ]
},
"wayland-brcm": {
@ -253,7 +258,7 @@
},
"wayland-drm-egl-server-buffer": {
"label": "DRM EGL",
"condition": "features.wayland-client && features.opengl && features.egl && tests.drm-egl-server && (!config.qnx || tests.egl_1_5-wayland)",
"condition": "features.wayland-client && features.opengl && features.egl && tests.drm-egl-server && (!config.qnx || features.egl-extension-platform-wayland)",
"output": [ "privateFeature" ]
},
"wayland-libhybris-egl-server-buffer": {