mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-17 11:34:18 +01:00
GS/TextureCache: Clear surface offset cache on reset
Also get rid of RemovePartial(), it's never called.
This commit is contained in:
1 parent
d00845f56b
commit
d0a933cda8
2 files changed
+2
-16
No files matched your search
@@ -43,24 +43,9 @@ GSTextureCache::~GSTextureCache()
|
||||
|
||||
RemoveAll();
|
||||
|
||||
m_surface_offset_cache.clear();
|
||||
|
||||
_aligned_free(s_unswizzle_buffer);
|
||||
}
|
||||
|
||||
void GSTextureCache::RemovePartial()
|
||||
{
|
||||
//m_src.RemoveAll();
|
||||
|
||||
for (int type = 0; type < 2; type++)
|
||||
{
|
||||
for (auto t : m_dst[type])
|
||||
delete t;
|
||||
|
||||
m_dst[type].clear();
|
||||
}
|
||||
}
|
||||
|
||||
void GSTextureCache::RemoveAll()
|
||||
{
|
||||
m_src.RemoveAll();
|
||||
@@ -85,6 +70,8 @@ void GSTextureCache::RemoveAll()
|
||||
|
||||
m_source_memory_usage = 0;
|
||||
m_target_memory_usage = 0;
|
||||
|
||||
m_surface_offset_cache.clear();
|
||||
}
|
||||
|
||||
void GSTextureCache::AddDirtyRectTarget(Target* target, GSVector4i rect, u32 psm, u32 bw)
|
||||
|
||||
@@ -395,7 +395,6 @@ public:
|
||||
void Read(Target* t, const GSVector4i& r);
|
||||
void Read(Source* t, const GSVector4i& r);
|
||||
void RemoveAll();
|
||||
void RemovePartial();
|
||||
void AddDirtyRectTarget(Target* target, GSVector4i rect, u32 psm, u32 bw);
|
||||
|
||||
GSTexture* LookupPaletteSource(u32 CBP, u32 CPSM, u32 CBW, GSVector2i& offset, const GSVector2i& size);
|
||||
|
||||
Reference in new issue
Block a user