diff --git a/gst-libs/gst/gl/egl/gstgldisplay_egl.c b/gst-libs/gst/gl/egl/gstgldisplay_egl.c index fb329ed0d3..af06351711 100644 --- a/gst-libs/gst/gl/egl/gstgldisplay_egl.c +++ b/gst-libs/gst/gl/egl/gstgldisplay_egl.c @@ -39,6 +39,9 @@ GST_DEBUG_CATEGORY_STATIC (gst_gl_display_debug); #ifndef EGL_PLATFORM_WAYLAND #define EGL_PLATFORM_WAYLAND 0x31D8 #endif +#ifndef EGL_PLATFORM_GBM_MESA +#define EGL_PLATFORM_GBM_MESA 0x31D7 +#endif #ifndef EGL_PLATFORM_ANDROID #define EGL_PLATFORM_ANDROID 0x3141 #endif diff --git a/m4/gst-gl.m4 b/m4/gst-gl.m4 index ceb7dc99bf..7bbc2be790 100644 --- a/m4/gst-gl.m4 +++ b/m4/gst-gl.m4 @@ -528,7 +528,7 @@ case $host in AC_MSG_WARN([EGL is required by the Mesa GBM EGL backend]) else HAVE_WINDOW_GBM=yes - GL_CFLAGS="$GL_CFLAGS $DRM_CFLAGS" + GL_CFLAGS="$GL_CFLAGS $DRM_CFLAGS $GBM_CFLAGS" fi fi