summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorBenjamin Otte <otte.benjamin@googlemail.com>2023-05-08 18:19:03 +0000
committerBenjamin Otte <otte.benjamin@googlemail.com>2023-05-08 18:19:03 +0000
commitd948ac62e4432a424c10e9ab95c7d71e4f9893e9 (patch)
treeaace4cbd629de23d01ebbccf22b24920ba328bf3 /gtk
parent98e6ed474ff90a62c44dc5e68617e815ba8ed36c (diff)
parent507e346ff1e4850a93704a0021c2b06cd0fc1465 (diff)
downloadgtk+-d948ac62e4432a424c10e9ab95c7d71e4f9893e9.tar.gz
Merge branch 'wip/otte/for-main' into 'main'
Revert "TEST TEST TEST" See merge request GNOME/gtk!5940
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkglarea.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gtk/gtkglarea.c b/gtk/gtkglarea.c
index 1e2f6b5535..f547a4995f 100644
--- a/gtk/gtkglarea.c
+++ b/gtk/gtkglarea.c
@@ -770,20 +770,6 @@ gtk_gl_area_snapshot (GtkWidget *widget,
texture = priv->texture;
priv->texture = NULL;
-
- if (priv->textures)
- gdk_gl_texture_builder_set_update_texture (texture->builder, ((Texture *) priv->textures->data)->holder);
- {
- cairo_region_t *region = cairo_region_create ();
- cairo_region_union_rectangle (region, &(cairo_rectangle_int_t) { 0, 0, 300, 300 });
- cairo_region_union_rectangle (region, &(cairo_rectangle_int_t) { 0, 600, 300, 300 });
- cairo_region_union_rectangle (region, &(cairo_rectangle_int_t) { 300, 300, 300, 300 });
- cairo_region_union_rectangle (region, &(cairo_rectangle_int_t) { 600, 0, 300, 300 });
- cairo_region_union_rectangle (region, &(cairo_rectangle_int_t) { 600, 600, 300, 300 });
- gdk_gl_texture_builder_set_update_region (texture->builder, region);
- cairo_region_destroy (region);
- }
-
priv->textures = g_list_prepend (priv->textures, texture);
if (gdk_gl_context_has_sync (priv->context))
@@ -795,7 +781,6 @@ gtk_gl_area_snapshot (GtkWidget *widget,
release_texture,
texture);
- gdk_gl_texture_builder_set_update_texture (texture->builder, NULL);
/* Our texture is rendered by OpenGL, so it is upside down,
* compared to what GSK expects, so flip it back.
*/