From 7cc334b894cb2a6d51b95726b778abc956a93754 Mon Sep 17 00:00:00 2001 From: sunshineinabox Date: Sun, 29 Sep 2024 18:11:44 -0700 Subject: [PATCH] Resolve some errors in logic --- .../Shader/DiskCache/ParallelDiskCacheLoader.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/ParallelDiskCacheLoader.cs b/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/ParallelDiskCacheLoader.cs index 1e09f0bf9..2661a828b 100644 --- a/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/ParallelDiskCacheLoader.cs +++ b/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/ParallelDiskCacheLoader.cs @@ -345,12 +345,9 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache { currentPipelineState.PatchControlPoints = 0; } - - currentPipelineState = program.SpecializationState.PipelineState.Value; } - - if (currentPipelineState.Equals(previousPipelineState) || !_context.Capabilities.SupportsExtendedDynamicState) + if (!currentPipelineState.Equals(previousPipelineState) || !_context.Capabilities.SupportsExtendedDynamicState || !program.SpecializationState.PipelineState.HasValue) { _hostStorage.AddShader(_context, program, binaryCode, streams);