From 65f484a6f54dba279ff20db4c867b9c51b23f671 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sat, 1 Aug 2026 12:23:44 -0300 Subject: [PATCH] vulkan: fix love.graphics.clear with multiple clear colours --- src/modules/graphics/vulkan/Graphics.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/graphics/vulkan/Graphics.cpp b/src/modules/graphics/vulkan/Graphics.cpp index 4475b5171..8a74d7c9c 100644 --- a/src/modules/graphics/vulkan/Graphics.cpp +++ b/src/modules/graphics/vulkan/Graphics.cpp @@ -291,6 +291,7 @@ void Graphics::clear(const std::vector &colors, OptionalInt sten if (color.hasValue) { auto texture = i < rts.colors.size() ? rts.colors[i].texture.get() : nullptr; + attachment.colorAttachment = i; attachment.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; attachment.clearValue.color = Texture::getClearColor(texture, color.value); }