Always set blend state for all colour attachments

This commit is contained in:
Billy Laws 2023-01-08 19:29:14 +00:00
parent 177925be93
commit 44f6aada18

View File

@ -552,8 +552,8 @@ namespace skyline::gpu::interconnect::maxwell3d {
boost::container::static_vector<vk::Format, engine::ColorTargetCount> colorAttachmentFormats; boost::container::static_vector<vk::Format, engine::ColorTargetCount> colorAttachmentFormats;
for (u32 i{}; i < engine::ColorTargetCount; i++) { for (u32 i{}; i < engine::ColorTargetCount; i++) {
attachmentBlendStates.push_back(packedState.GetAttachmentBlendState(i));
if (i < packedState.GetColorRenderTargetCount()) { if (i < packedState.GetColorRenderTargetCount()) {
attachmentBlendStates.push_back(packedState.GetAttachmentBlendState(i));
texture::Format format{packedState.GetColorRenderTargetFormat(packedState.ctSelect[i])}; texture::Format format{packedState.GetColorRenderTargetFormat(packedState.ctSelect[i])};
colorAttachmentFormats.push_back(format ? format->vkFormat : vk::Format::eUndefined); colorAttachmentFormats.push_back(format ? format->vkFormat : vk::Format::eUndefined);
} else { } else {