mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-12 05:40:24 +02:00
revert last commit, add CheckInvalidState to VideoBackend
This commit is contained in:
1 parent
ffddfd8662
commit
bd0abb3d2f
9 files changed
+57
-57
No files matched your search
@@ -72,18 +72,6 @@ void TextureCache::Invalidate()
|
||||
textures.clear();
|
||||
}
|
||||
|
||||
// this function is dirty hack to work around a OGL bug.
|
||||
// it is only used on loading states. It will work for normal textures,
|
||||
// but for efb2ram, it wouldn't be checked. So there may be glitches on loading
|
||||
void TextureCache::InvalidateHashes()
|
||||
{
|
||||
TexCache::iterator
|
||||
iter = textures.begin(),
|
||||
tcend = textures.end();
|
||||
for (; iter != tcend; ++iter)
|
||||
iter->second->hash = TEXHASH_INVALID;
|
||||
}
|
||||
|
||||
TextureCache::~TextureCache()
|
||||
{
|
||||
Invalidate();
|
||||
|
||||
Reference in new issue
Block a user