GS: sparse targets need to be cleared on fetch.

This commit is contained in:
iMineLink 2022-01-08 13:52:07 +01:00 committed by lightningterror
parent 0ef7e82548
commit 7d27b675d0
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,7 @@ GSTexture* GSDevice::FetchSurface(GSTexture::Type type, int width, int height, i
switch (type)
{
case GSTexture::Type::RenderTarget:
case GSTexture::Type::SparseRenderTarget:
{
if (clear)
ClearRenderTarget(t, 0);
@ -167,6 +168,7 @@ GSTexture* GSDevice::FetchSurface(GSTexture::Type type, int width, int height, i
}
break;
case GSTexture::Type::DepthStencil:
case GSTexture::Type::SparseDepthStencil:
{
if (clear)
ClearDepth(t);