[gtk/wip/baedert/for-master: 95/99] gdkgl: Stop getting the clip region from cairo




commit b8ba53e2b214f1c5f0085b5e3927650aedfa7acf
Author: Timm Bäder <mail baedert org>
Date:   Thu Oct 1 09:47:34 2020 +0200

    gdkgl: Stop getting the clip region from cairo
    
    Unused

 gdk/gdkgl.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/gdk/gdkgl.c b/gdk/gdkgl.c
index 7e4817a4db..00b0272c8c 100644
--- a/gdk/gdkgl.c
+++ b/gdk/gdkgl.c
@@ -330,7 +330,6 @@ gdk_cairo_draw_from_gl (cairo_t              *cr,
   cairo_surface_t *image;
   guint framebuffer;
   int alpha_size = 0;
-  cairo_region_t *clip_region;
   GdkGLContextPaintData *paint_data;
   int major, minor, version;
   gboolean es_use_bgra = FALSE;
@@ -342,7 +341,6 @@ gdk_cairo_draw_from_gl (cairo_t              *cr,
       return;
     }
 
-  clip_region = gdk_cairo_region_from_clip (cr);
   es_use_bgra = gdk_gl_context_use_es_bgra (paint_context);
 
   gdk_gl_context_make_current (paint_context);
@@ -379,7 +377,7 @@ gdk_cairo_draw_from_gl (cairo_t              *cr,
    */
   if (gdk_gl_context_get_use_es (paint_context) &&
       !(version >= 300 || gdk_gl_context_has_unpack_subimage (paint_context)))
-    goto out;
+    return;
 
   /* TODO: avoid reading back non-required data due to dest clip */
   image = cairo_surface_create_similar_image (cairo_get_target (cr),
@@ -430,8 +428,4 @@ gdk_cairo_draw_from_gl (cairo_t              *cr,
   cairo_paint (cr);
 
   cairo_surface_destroy (image);
-
-out:
-  if (clip_region)
-    cairo_region_destroy (clip_region);
 }


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