소스 검색

The new host program needs to be saved even if it isn't valid.

riperiperi 5 년 전
부모
커밋
20d560e3f9
1개의 변경된 파일0개의 추가작업 그리고 10개의 파일을 삭제
  1. 0 10
      Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs

+ 0 - 10
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);