aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2021-04-02 22:47:14 +0100
committerriperiperi <rhy3756547@hotmail.com>2021-04-18 17:33:59 +0100
commit20d560e3f925e387c9c28705a120202ca38abd8b (patch)
tree3b540d5aff9bf414ef9e29574621047ac7ecbd46
parentddf4b92a9cfbe98f798dd86a7c123b065a832d51 (diff)
The new host program needs to be saved even if it isn't valid.
-rw-r--r--Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs10
1 files changed, 0 insertions, 10 deletions
diff --git a/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs b/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs
index 96b836c5..35908cb9 100644
--- a/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs
+++ b/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs
@@ -197,11 +197,6 @@ namespace Ryujinx.Graphics.Gpu.Shader
task.OnCompiled(hostProgram, (bool isNewProgramValid, ShaderCompileTask task) =>
{
- if (!isNewProgramValid)
- {
- return true;
- }
-
// As the host program was invalidated, save the new entry in the cache.
hostProgramBinary = HostShaderCacheEntry.Create(hostProgram.GetBinary(), new ShaderCodeHolder[] { shader });
@@ -365,11 +360,6 @@ namespace Ryujinx.Graphics.Gpu.Shader
task.OnCompiled(hostProgram, (bool isNewProgramValid, ShaderCompileTask task) =>
{
- if (!isNewProgramValid)
- {
- return true;
- }
-
// As the host program was invalidated, save the new entry in the cache.
hostProgramBinary = HostShaderCacheEntry.Create(hostProgram.GetBinary(), shaders);