From 3fd30e41bfd14d2bd1b0efacfc46275347b54de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Mon, 29 Mar 2021 14:38:19 +0200 Subject: [PATCH] Sink: limit GL APIs to OpenGL3+ and GLES2+ Only allow using OpenGL 3.2+ or OpenGL ES 2.0+. This is what GTK4 supports. #59 --- lib/gst/clapper/gtk4/gtkclapperglwidget.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/gst/clapper/gtk4/gtkclapperglwidget.c b/lib/gst/clapper/gtk4/gtkclapperglwidget.c index fc7e5feb..cb911078 100644 --- a/lib/gst/clapper/gtk4/gtkclapperglwidget.c +++ b/lib/gst/clapper/gtk4/gtkclapperglwidget.c @@ -52,6 +52,8 @@ GST_DEBUG_CATEGORY (gst_debug_clapper_gl_widget); #define GST_CAT_DEFAULT gst_debug_clapper_gl_widget +#define SUPPORTED_GL_APIS GST_GL_API_OPENGL3 | GST_GL_API_GLES2 + #define DEFAULT_FORCE_ASPECT_RATIO TRUE #define DEFAULT_PAR_N 0 #define DEFAULT_PAR_D 1 @@ -999,6 +1001,7 @@ gtk_clapper_gl_widget_init (GtkClapperGLWidget * clapper_widget) priv->display = gst_gl_display_new (); GST_INFO ("Created %" GST_PTR_FORMAT, priv->display); + gst_gl_display_filter_gl_api (priv->display, SUPPORTED_GL_APIS); gtk_gl_area_set_auto_render (GTK_GL_AREA (widget), FALSE); }