vulkan: Handle empty rects in intersects_rect()

Apart from the none case, this was already handled, so we just check if
the rect is empty now.
This commit is contained in:
Benjamin Otte 2023-06-11 02:56:50 +02:00
parent cf48f83709
commit 82ba8c848b

View File

@ -252,7 +252,7 @@ gsk_vulkan_clip_intersects_rect (const GskVulkanClip *self,
return FALSE;
case GSK_VULKAN_CLIP_NONE:
return TRUE;
return r.size.width > 0 && r.size.height > 0;
case GSK_VULKAN_CLIP_RECT:
return graphene_rect_intersection (&self->rect.bounds, &r, NULL);