summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2021-03-09 21:05:49 +0100
committerBenjamin Otte <otte@redhat.com>2021-03-15 01:30:34 +0100
commit1fd534ef1ee0f5e62dbdcf1f82ed7dc287d77d13 (patch)
treef88c5a3cbc7276481c34edf39eb47d9cd05ef2bd
parent24ec2cc6a67bba6b2898c9a55d554dae76c5bc76 (diff)
downloadgtk+-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.c5
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;