From f4d731ae2094128dcd1dc4a4be60b068047a77a7 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 15 Dec 2022 13:52:12 -0300 Subject: [PATCH] Fix NRE when loading Vulkan shader cache with Vertex A shaders (#4124) --- Ryujinx.Graphics.Gpu/Shader/DiskCache/ShaderBinarySerializer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ryujinx.Graphics.Gpu/Shader/DiskCache/ShaderBinarySerializer.cs b/Ryujinx.Graphics.Gpu/Shader/DiskCache/ShaderBinarySerializer.cs index 0e5ce292..5b430e1a 100644 --- a/Ryujinx.Graphics.Gpu/Shader/DiskCache/ShaderBinarySerializer.cs +++ b/Ryujinx.Graphics.Gpu/Shader/DiskCache/ShaderBinarySerializer.cs @@ -53,7 +53,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache { CachedShaderStage currentStage = stages[i]; - if (currentStage != null && currentStage.Info.Stage == stage && currentStage.Info != null) + if (currentStage?.Info != null && currentStage.Info.Stage == stage) { return ShaderCache.GetBindings(currentStage.Info); }