allow null depth stencil render targets

This commit is contained in:
Samuliak 2024-05-25 09:56:42 +02:00 committed by Isaac Marovitz
parent f8a81aac84
commit 1965ac74a8
1 changed files with 3 additions and 0 deletions

View File

@ -298,6 +298,9 @@ namespace Ryujinx.Graphics.Metal
if (depthStencil is Texture depthTexture)
{
_currentState.DepthStencil = depthTexture;
} else if (depthStencil == null)
{
_currentState.DepthStencil = null;
}
// Requires recreating pipeline