summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2012-12-23 13:32:23 +0100
committerdegasus <wickmarkus@web.de>2012-12-23 13:32:23 +0100
commitbd0abb3d2fe5047554bb6b87fa8e3f6aa3f42e0b (patch)
treee3fb4fbbddce310cbc3a6efed74c60cac89126e7 /Source/Core/VideoCommon/Src/TextureCacheBase.cpp
parentffddfd8662bda4fedcfcc8cad73f02bd7a522925 (diff)
revert last commit, add CheckInvalidState to VideoBackend
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/TextureCacheBase.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureCacheBase.cpp b/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
index 2bcaead19c..7c47c35bb6 100644
--- a/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
@@ -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();