Resolve some errors in logic

This commit is contained in:
sunshineinabox 2024-09-29 18:11:44 -07:00
parent acbd9eb98f
commit 7cc334b894

View file

@ -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);