mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-14 10:10:12 +01:00
GS: sparse targets need to be cleared on fetch.
This commit is contained in:
1 parent
0ef7e82548
commit
7d27b675d0
1 file changed
+2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user