From 85faa9d8fa1f8d5b1a80f3506717186f7a7e26c9 Mon Sep 17 00:00:00 2001 From: Ac_K Date: Fri, 13 Jan 2023 07:04:59 +0100 Subject: Revert "Relax Vulkan requirements (#4228)" (#4279) This reverts commit dca5b14493e730960ed5cd67906278ecea969b3a. --- Ryujinx.Graphics.Vulkan/FramebufferParams.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Vulkan/FramebufferParams.cs') diff --git a/Ryujinx.Graphics.Vulkan/FramebufferParams.cs b/Ryujinx.Graphics.Vulkan/FramebufferParams.cs index 84ac0b05..751ef5eb 100644 --- a/Ryujinx.Graphics.Vulkan/FramebufferParams.cs +++ b/Ryujinx.Graphics.Vulkan/FramebufferParams.cs @@ -23,7 +23,7 @@ namespace Ryujinx.Graphics.Vulkan public int[] AttachmentIndices { get; } public int AttachmentsCount { get; } - public int MaxColorAttachmentIndex => AttachmentIndices.Length > 0 ? AttachmentIndices[AttachmentIndices.Length - 1] : -1; + public int MaxColorAttachmentIndex { get; } public bool HasDepthStencil { get; } public int ColorAttachmentsCount => AttachmentsCount - (HasDepthStencil ? 1 : 0); @@ -67,6 +67,7 @@ namespace Ryujinx.Graphics.Vulkan AttachmentSamples = new uint[count]; AttachmentFormats = new VkFormat[count]; AttachmentIndices = new int[count]; + MaxColorAttachmentIndex = colors.Length - 1; uint width = uint.MaxValue; uint height = uint.MaxValue; -- cgit v1.2.3