vulkan: fix love.graphics.clear with multiple clear colours

This commit is contained in:
Sasha Szpakowski
2026-08-01 12:23:44 -03:00
parent 7bd233e3a3
commit 65f484a6f5
+1
View File
@@ -291,6 +291,7 @@ void Graphics::clear(const std::vector<OptionalColorD> &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);
}