vulkan: intersect rects also for CLIP_NONE
authorBenjamin Otte <otte@redhat.com>
Sat, 8 Jul 2023 08:42:07 +0000 (10:42 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 10 Jul 2023 04:32:01 +0000 (06:32 +0200)
commit5c601b673e3005277b5390b8af676793be2d5fe5
tree0ff8f29442c31dff0ae8fd86b87d090c53fea7ae
parent465a34e6b0ef9654423c32d389dbb8ba6af40cdb
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.
gsk/vulkan/gskvulkanclip.c