summaryrefslogtreecommitdiff
path: root/gdk/wayland
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-04-09 00:58:31 +0200
committerBenjamin Otte <otte@redhat.com>2018-04-09 01:00:31 +0200
commitbb8f6f87ae0fa65c1f9747e5bc6978d790d6230a (patch)
tree1c626d8dd9b478b0e82b46d0bc72863d34795613 /gdk/wayland
parentc8e38c606536316e25ad565755a2163b3320afe7 (diff)
downloadgtk+-bb8f6f87ae0fa65c1f9747e5bc6978d790d6230a.tar.gz
glcontext: Store the buffer age regions in the GL context
That way, we can store the right region there: The actual painted area instead of the exposed area (which is way too small). Also, the GL context is the only user of this data, so storing it there seems way smarter.
Diffstat (limited to 'gdk/wayland')
-rw-r--r--gdk/wayland/gdkglcontext-wayland.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c
index 700baa02d6..3db9db5ac4 100644
--- a/gdk/wayland/gdkglcontext-wayland.c
+++ b/gdk/wayland/gdkglcontext-wayland.c
@@ -184,16 +184,16 @@ gdk_wayland_gl_context_get_damage (GdkGLContext *context)
if (buffer_age == 2)
{
- if (surface->old_updated_area[0])
- return cairo_region_copy (surface->old_updated_area[0]);
+ if (context->old_updated_area[0])
+ return cairo_region_copy (context->old_updated_area[0]);
}
else if (buffer_age == 3)
{
- if (surface->old_updated_area[0] &&
- surface->old_updated_area[1])
+ if (context->old_updated_area[0] &&
+ context->old_updated_area[1])
{
- cairo_region_t *damage = cairo_region_copy (surface->old_updated_area[0]);
- cairo_region_union (damage, surface->old_updated_area[1]);
+ cairo_region_t *damage = cairo_region_copy (context->old_updated_area[0]);
+ cairo_region_union (damage, context->old_updated_area[1]);
return damage;
}
}