forked from AuroraMiddleware/gtk
vulkan: Fix invalid read
Look at the right rect to compute circularness
This commit is contained in:
parent
bfa68223e1
commit
9f18c138d1
@ -113,7 +113,7 @@ gsk_vulkan_clip_intersect_rounded_rect (GskVulkanClip *dest,
|
|||||||
case GSK_VULKAN_CLIP_RECT:
|
case GSK_VULKAN_CLIP_RECT:
|
||||||
if (graphene_rect_contains_rect (&src->rect.bounds, &rounded->bounds))
|
if (graphene_rect_contains_rect (&src->rect.bounds, &rounded->bounds))
|
||||||
{
|
{
|
||||||
dest->type = gsk_rounded_rect_is_circular (&dest->rect) ? GSK_VULKAN_CLIP_ROUNDED_CIRCULAR : GSK_VULKAN_CLIP_ROUNDED;
|
dest->type = gsk_rounded_rect_is_circular (rounded) ? GSK_VULKAN_CLIP_ROUNDED_CIRCULAR : GSK_VULKAN_CLIP_ROUNDED;
|
||||||
gsk_rounded_rect_init_copy (&dest->rect, rounded);
|
gsk_rounded_rect_init_copy (&dest->rect, rounded);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user