0
0
Fork 0

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 GitHub
parent 8ac53c66b4
commit f4d731ae20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
{ {
CachedShaderStage currentStage = stages[i]; 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); return ShaderCache.GetBindings(currentStage.Info);
} }