mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
vulkan: intersect rects also for CLIP_NONE
If we don't clip anything, we stil have bounds - either the framebuffer size or (more likely) the scissor rect. And we don't want to draw anything that is outside these bounds. So clip in those cases, too. Stops gtk4-demo --run=listbox from trying to render the whole listbox instead of only the visible parts.
This commit is contained in:
parent
465a34e6b0
commit
5c601b673e
@ -252,8 +252,6 @@ gsk_vulkan_clip_intersects_rect (const GskVulkanClip *self,
|
||||
return FALSE;
|
||||
|
||||
case GSK_VULKAN_CLIP_NONE:
|
||||
return r.size.width > 0 && r.size.height > 0;
|
||||
|
||||
case GSK_VULKAN_CLIP_RECT:
|
||||
return graphene_rect_intersection (&self->rect.bounds, &r, NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user