Fix NRE when loading Vulkan shader cache with Vertex A shaders (#4124)

This commit is contained in:
gdkchan 2022-12-15 13:52:12 -03:00 committed by Matt Heins
parent a6f4369ff7
commit fc193e9e6c

View file

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