GS: sparse targets need to be cleared on fetch.

This commit is contained in:
iMineLink authored and lightningterror committed 2022-01-17 20:02:16 +01:00
1 parent 0ef7e82548
commit 7d27b675d0
1 file changed
+2
+2
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);