diff --git a/Ryujinx.Graphics.Gpu/Shader/ShaderSpecializationState.cs b/Ryujinx.Graphics.Gpu/Shader/ShaderSpecializationState.cs index 9e847ac90..fca13b84d 100644 --- a/Ryujinx.Graphics.Gpu/Shader/ShaderSpecializationState.cs +++ b/Ryujinx.Graphics.Gpu/Shader/ShaderSpecializationState.cs @@ -212,7 +212,7 @@ namespace Ryujinx.Graphics.Gpu.Shader for (int i = 0; i < stages.Length; i++) { CachedShaderStage stage = stages[i]; - if (stage != null) + if (stage != null && stage.Info != null) { var textures = stage.Info.Textures; var images = stage.Info.Images;