OpenGL: Fix clears of unbound color targets (#3564)

This commit is contained in:
gdkchan
2022-08-08 14:39:22 -03:00
committed by GitHub
parent 2bb9b33da1
commit 66e7fdb871
2 changed files with 5 additions and 1 deletions

View File

@ -147,7 +147,7 @@ namespace Ryujinx.Graphics.OpenGL
public int GetColorLayerCount(int index)
{
return _colors[index].Info.GetDepthOrLayers();
return _colors[index]?.Info.GetDepthOrLayers() ?? 0;
}
public int GetDepthStencilLayerCount()