Fix bug that could cause depth buffer to be missing after clear (#3067)

This commit is contained in:
gdkchan 2022-01-31 00:11:43 -03:00 committed by GitHub
parent 0dddcd012c
commit b944941733
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View file

@ -434,6 +434,7 @@ namespace Ryujinx.Graphics.Gpu.Image
{
new Span<ITexture>(_rtHostColors).Fill(null);
_rtHostColors[index] = _rtColors[index]?.HostTexture;
_rtHostDs = null;
_context.Renderer.Pipeline.SetRenderTargets(_rtHostColors, null);
}