gl: check for EGL_KHR_platform_gbm for non-MESA gbm implementations
authormemeka <mihailescu2m@gmail.com>
Tue, 26 Jun 2018 02:48:27 +0000 (12:18 +0930)
committerMatthew Waters <matthew@centricular.com>
Thu, 28 Jun 2018 13:53:56 +0000 (23:53 +1000)
https://bugzilla.gnome.org/show_bug.cgi?id=796694

gst-libs/gst/gl/egl/gstgldisplay_egl.c

index b2265dc..fb329ed 100644 (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);
   }