diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-01-13 02:09:48 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-13 06:09:48 +0100 |
commit | dca5b14493e730960ed5cd67906278ecea969b3a (patch) | |
tree | a9f45030868bc8a03453d25b818cef04789fd33f /Ryujinx.Graphics.Vulkan/PipelineBase.cs | |
parent | 4d2c8e2a442d2859a75c6c9162a192a0a9a221be (diff) |
Relax Vulkan requirements (#4228)1.1.551
Diffstat (limited to 'Ryujinx.Graphics.Vulkan/PipelineBase.cs')
-rw-r--r-- | Ryujinx.Graphics.Vulkan/PipelineBase.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Vulkan/PipelineBase.cs b/Ryujinx.Graphics.Vulkan/PipelineBase.cs index 1c0c836b..c4a9f2df 100644 --- a/Ryujinx.Graphics.Vulkan/PipelineBase.cs +++ b/Ryujinx.Graphics.Vulkan/PipelineBase.cs @@ -1344,8 +1344,7 @@ namespace Ryujinx.Graphics.Vulkan var dstAttachmentFormats = _newState.Internal.AttachmentFormats.AsSpan(); FramebufferParams.AttachmentFormats.CopyTo(dstAttachmentFormats); - int maxAttachmentIndex = FramebufferParams.MaxColorAttachmentIndex + (FramebufferParams.HasDepthStencil ? 1 : 0); - for (int i = FramebufferParams.AttachmentFormats.Length; i <= maxAttachmentIndex; i++) + for (int i = FramebufferParams.AttachmentFormats.Length; i < dstAttachmentFormats.Length; i++) { dstAttachmentFormats[i] = 0; } |