Handle stage.Info being null

Hopefully fixes Catherine crash
This commit is contained in:
riperiperi 2022-06-13 13:24:26 +01:00
parent 0f6c8f9cd9
commit 5bf992e083

View file

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