diff --git a/gsk/vulkan/gskvulkanclip.c b/gsk/vulkan/gskvulkanclip.c index bf8a2732e1..2784bdd7c2 100644 --- a/gsk/vulkan/gskvulkanclip.c +++ b/gsk/vulkan/gskvulkanclip.c @@ -236,9 +236,9 @@ gsk_vulkan_clip_transform (GskVulkanClip *dest, } gboolean -gsk_vulkan_clip_intersects_rect (const GskVulkanClip *self, - const graphene_point_t *offset, - const graphene_rect_t *rect) +gsk_vulkan_clip_may_intersect_rect (const GskVulkanClip *self, + const graphene_point_t *offset, + const graphene_rect_t *rect) { graphene_rect_t r = *rect; r.origin.x += offset->x; @@ -253,10 +253,8 @@ gsk_vulkan_clip_intersects_rect (const GskVulkanClip *self, case GSK_VULKAN_CLIP_NONE: case GSK_VULKAN_CLIP_RECT: - return graphene_rect_intersection (&self->rect.bounds, &r, NULL); - case GSK_VULKAN_CLIP_ROUNDED: - return gsk_rounded_rect_intersects_rect (&self->rect, &r); + return graphene_rect_intersection (&self->rect.bounds, &r, NULL); } } diff --git a/gsk/vulkan/gskvulkanclipprivate.h b/gsk/vulkan/gskvulkanclipprivate.h index f3cadfc337..9f39250ee8 100644 --- a/gsk/vulkan/gskvulkanclipprivate.h +++ b/gsk/vulkan/gskvulkanclipprivate.h @@ -55,7 +55,7 @@ gboolean gsk_vulkan_clip_transform (GskVulk gboolean gsk_vulkan_clip_contains_rect (const GskVulkanClip *self, const graphene_point_t *offset, const graphene_rect_t *rect) G_GNUC_WARN_UNUSED_RESULT; -gboolean gsk_vulkan_clip_intersects_rect (const GskVulkanClip *self, +gboolean gsk_vulkan_clip_may_intersect_rect (const GskVulkanClip *self, const graphene_point_t *offset, const graphene_rect_t *rect) G_GNUC_WARN_UNUSED_RESULT; diff --git a/gsk/vulkan/gskvulkanrenderpass.c b/gsk/vulkan/gskvulkanrenderpass.c index 3e793e4600..66a74174af 100644 --- a/gsk/vulkan/gskvulkanrenderpass.c +++ b/gsk/vulkan/gskvulkanrenderpass.c @@ -1195,7 +1195,7 @@ gsk_vulkan_render_pass_add_node (GskVulkanRenderPass *self, /* This catches the corner cases of empty nodes, so after this check * there's quaranteed to be at least 1 pixel that needs to be drawn */ - if (!gsk_vulkan_clip_intersects_rect (&state->clip, &state->offset, &node->bounds)) + if (!gsk_vulkan_clip_may_intersect_rect (&state->clip, &state->offset, &node->bounds)) return; node_type = gsk_render_node_get_node_type (node);