From 659536bc1233c2ddd7006b844ddba3408fdd26e9 Mon Sep 17 00:00:00 2001 From: Gabriel A Date: Sat, 25 May 2024 20:09:51 -0300 Subject: [PATCH] Should only use separate array is MaximumExtraSets is not zero --- src/Ryujinx.Graphics.Gpu/Image/TextureBindingsArrayCache.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx.Graphics.Gpu/Image/TextureBindingsArrayCache.cs b/src/Ryujinx.Graphics.Gpu/Image/TextureBindingsArrayCache.cs index a560a238b1..18e28b3dd7 100644 --- a/src/Ryujinx.Graphics.Gpu/Image/TextureBindingsArrayCache.cs +++ b/src/Ryujinx.Graphics.Gpu/Image/TextureBindingsArrayCache.cs @@ -969,7 +969,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// Texture array private void SetTextureArray(ShaderStage stage, in TextureBindingInfo bindingInfo, ITextureArray array) { - if (bindingInfo.Set >= _context.Capabilities.ExtraSetBaseIndex) + if (bindingInfo.Set >= _context.Capabilities.ExtraSetBaseIndex && _context.Capabilities.MaximumExtraSets != 0) { _context.Renderer.Pipeline.SetTextureArraySeparate(stage, bindingInfo.Set, array); } @@ -987,7 +987,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// Image array private void SetImageArray(ShaderStage stage, in TextureBindingInfo bindingInfo, IImageArray array) { - if (bindingInfo.Set >= _context.Capabilities.ExtraSetBaseIndex) + if (bindingInfo.Set >= _context.Capabilities.ExtraSetBaseIndex && _context.Capabilities.MaximumExtraSets != 0) { _context.Renderer.Pipeline.SetImageArraySeparate(stage, bindingInfo.Set, array); }