render/vulkan: don't try to clear empty rects
This fixes the following validation error for me (using nested Sway with the Vulkan renderer and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation
):
00:00:00.347 [wlr] [render/vulkan/vulkan.c:65] Validation Error: [ VUID-
vkCmdClearAttachments-rect-02682 ] Object 0: handle = 0x628000194100, type =
VK_OBJECT_TYPE_COMMAND_BUFFER; | MessageID = 0xadbd476f |
CmdClearAttachments(): pRects[0].rect.extent.width is zero. The Vulkan spec
states: The rect member of each element of pRects must have an extent.width
greater than 0 (https://www.khronos.org/registry/vulkan/specs/1.3-extensions
/html/vkspec.html#VUID-vkCmdClearAttachments-rect-02682) (VUID-
vkCmdClearAttachments-rect-02682)