mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-06 02:08:28 +02:00
OpenGL: Fix clears of unbound color targets (#3564)
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user