[gtk/gst.gl.win32] gtkgstsink.c: Call gst_gl_display_filter_gl_api() always on Windows



commit 365c546a8e1ef17a266563daee60a45aa72c86bb
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu May 20 16:52:39 2021 +0800

    gtkgstsink.c: Call gst_gl_display_filter_gl_api() always on Windows
    
    This streamlines the code and makes sure that we have the proper GL API for
    GstGL seutp.

 modules/media/gtkgstsink.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/modules/media/gtkgstsink.c b/modules/media/gtkgstsink.c
index 549706767b..746f02b327 100644
--- a/modules/media/gtkgstsink.c
+++ b/modules/media/gtkgstsink.c
@@ -510,13 +510,10 @@ gtk_gst_sink_initialize_gl (GtkGstSink *self)
             {
               gpointer display_ptr = gdk_win32_display_get_egl_display (display);
               self->gst_display = GST_GL_DISPLAY (gst_gl_display_egl_new_with_egl_display (display_ptr));
-
-              /* limit GL API to gles2 if that is what we got from asking GdkGLContext */
-              if (gl_api == GST_GL_API_GLES2)
-                gst_gl_display_filter_gl_api (self->gst_display, GST_GL_API_GLES2);
             }
 #endif
 
+          gst_gl_display_filter_gl_api (self->gst_display, gl_api);
           self->gst_app_context = gst_gl_context_new_wrapped (self->gst_display, gl_handle, platform, 
gl_api);
         }
       else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]