[gtk/matthiasc/for-master] media: Always use GL with gstreamer




commit 60ccae000bb684c5a980800821720c0249c09383
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Mar 17 16:26:40 2021 -0400

    media: Always use GL with gstreamer
    
    As long as we can create a GL context, pass one to
    gstreamer. This at least gets us GL textures with
    the ngl renderer, the previous code was arbitrarily
    refusing that.

 modules/media/gtkgstpaintable.c | 10 ----------
 1 file changed, 10 deletions(-)
---
diff --git a/modules/media/gtkgstpaintable.c b/modules/media/gtkgstpaintable.c
index 5bd789c1f3..ab837382b8 100644
--- a/modules/media/gtkgstpaintable.c
+++ b/modules/media/gtkgstpaintable.c
@@ -192,20 +192,10 @@ gtk_gst_paintable_realize (GtkGstPaintable *self,
                            GdkSurface      *surface)
 {
   GError *error = NULL;
-  GtkNative *native;
-  GskRenderer *renderer;
 
   if (self->context)
     return;
 
-  native = gtk_native_get_for_surface (surface);
-  renderer = gtk_native_get_renderer (native);
-  if (!GSK_IS_GL_RENDERER (renderer))
-    {
-      GST_INFO ("not using GL with a %s renderer\n", G_OBJECT_TYPE_NAME (renderer));
-      return;
-    }
-
   self->context = gdk_surface_create_gl_context (surface, &error);
   if (self->context == NULL)
     {


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