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