ngl: Remove duplicate check

We check the extents, so there's no need to check overlap before.
This commit is contained in:
Benjamin Otte 2021-03-09 21:05:49 +01:00
parent 24ec2cc6a6
commit 1fd534ef1e

View File

@ -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;