summaryrefslogtreecommitdiff
path: root/gdk/gdkgl.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-10-01 09:47:34 +0200
committerMatthias Clasen <mclasen@redhat.com>2020-10-14 15:06:12 -0400
commitd4efb5b73836f29f59b37471caf3a4d57ce48e35 (patch)
tree050fcc7cc42e5fdf5d535d68f47b533b2e2098ac /gdk/gdkgl.c
parentddcff9eb0f309e08d1e806dcf79f3a81d512f268 (diff)
downloadgtk+-d4efb5b73836f29f59b37471caf3a4d57ce48e35.tar.gz
gdkgl: Stop getting the clip region from cairo
Unused
Diffstat (limited to 'gdk/gdkgl.c')
-rw-r--r--gdk/gdkgl.c8
1 files changed, 1 insertions, 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);
}