mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-27 17:07:10 +02:00
OpenGL: Fix clears of unbound color targets (#3564)
This commit is contained in:
parent
3a1eb87b04
commit
f073711053
2 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue