1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-24 08:36:06 +00:00

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 8d7be4fe25
commit acce02bdf5

View file

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