diff options
author | Benjamin Otte <otte@redhat.com> | 2021-03-09 21:05:49 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2021-03-15 01:30:34 +0100 |
commit | 1fd534ef1ee0f5e62dbdcf1f82ed7dc287d77d13 (patch) | |
tree | f88c5a3cbc7276481c34edf39eb47d9cd05ef2bd | |
parent | 24ec2cc6a67bba6b2898c9a55d554dae76c5bc76 (diff) | |
download | gtk+-1fd534ef1ee0f5e62dbdcf1f82ed7dc287d77d13.tar.gz |
ngl: Remove duplicate check
We check the extents, so there's no need to check overlap before.
-rw-r--r-- | gsk/ngl/gsknglrenderer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gsk/ngl/gsknglrenderer.c b/gsk/ngl/gsknglrenderer.c index 66edc98d5d..4c6a077ab3 100644 --- a/gsk/ngl/gsknglrenderer.c +++ b/gsk/ngl/gsknglrenderer.c @@ -173,10 +173,7 @@ get_render_region (GdkSurface *surface, */ damage = gdk_draw_context_get_frame_region (GDK_DRAW_CONTEXT (context)); - if (cairo_region_contains_rectangle (damage, &whole_surface) == CAIRO_REGION_OVERLAP_IN) - return NULL; - - /* If the extents match the full-scene, do the same as above */ + /* If the extents match the full-scene, return NULL */ cairo_region_get_extents (damage, &extents); if (gdk_rectangle_equal (&extents, &whole_surface)) return NULL; |