mirror of
https://github.com/love2d/love.git
synced 2026-08-12 00:20:52 +02:00
vulkan: fix love.graphics.clear with multiple clear colours
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user