gl: check for EGL_KHR_platform_gbm for non-MESA gbm implementations

https://bugzilla.gnome.org/show_bug.cgi?id=796694
This commit is contained in:
memeka 2018-06-26 12:18:27 +09:30 committed by Matthew Waters
parent 71734b33aa
commit 1c8bf44dea

View file

@ -153,7 +153,7 @@ gst_gl_display_egl_get_from_native (GstGLDisplayType type, guintptr display)
#if GST_GL_HAVE_WINDOW_GBM
if (ret == EGL_NO_DISPLAY && (type & GST_GL_DISPLAY_TYPE_GBM) &&
(gst_gl_check_extension ("EGL_MESA_platform_gbm", egl_exts) ||
gst_gl_check_extension ("EGL_MESA_platform_gbm", egl_exts))) {
gst_gl_check_extension ("EGL_KHR_platform_gbm", egl_exts))) {
ret = _gst_eglGetPlatformDisplay (EGL_PLATFORM_GBM_MESA, (gpointer) display,
NULL);
}