renderer/native: Also allow EGL_KHR_platform_gbm extension string

Proprietary drivers such as ARM Mali export EGL_KHR_platform_gbm instead
of EGL_MESA_platform_gbm. As such, GBM platform check should be done for
both MESA and non-MESA drivers.

https://bugzilla.gnome.org/show_bug.cgi?id=780668
This commit is contained in:
memeka 2017-11-03 03:59:00 +00:00 committed by Jonas Ådahl
parent 74e88dd18f
commit ce7dbfb3d9

View File

@ -1879,6 +1879,9 @@ init_gbm (MetaRendererNative *renderer_native,
if (!meta_egl_has_extensions (egl, EGL_NO_DISPLAY, NULL,
"EGL_MESA_platform_gbm",
NULL) &&
!meta_egl_has_extensions (egl, EGL_NO_DISPLAY, NULL,
"EGL_KHR_platform_gbm",
NULL))
{
g_set_error (error, G_IO_ERROR,