summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2010-05-28 23:14:16 +0000
committerJordan Woyak <jordan.woyak@gmail.com>2010-05-28 23:14:16 +0000
commitceabf90bdabd49b401b6f035ce5eb71178fc682a (patch)
tree51772b735d7264b912b0663e1c3d02b9149d5306 /Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp
parent0d75190af9fbae45531ff966b1289919764535f7 (diff)
Improve iterator usage.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5528 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp b/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp
index 894293bcd2..4e9ae42a66 100644
--- a/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp
+++ b/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp
@@ -72,7 +72,7 @@ void TextureCache::Init()
void TextureCache::Invalidate(bool shutdown)
{
- for (TexCache::iterator iter = textures.begin(); iter != textures.end(); iter++)
+ for (TexCache::iterator iter = textures.begin(); iter != textures.end(); ++iter)
iter->second.Destroy(shutdown);
textures.clear();
HiresTextures::Shutdown();
@@ -86,7 +86,7 @@ void TextureCache::InvalidateRange(u32 start_address, u32 size)
if (iter->second.IntersectsMemoryRange(start_address, size))
{
iter->second.Destroy(false);
- ERASE_THROUGH_ITERATOR(textures, iter);
+ textures.erase(iter++);
}
else {
++iter;
@@ -131,7 +131,7 @@ void TextureCache::Cleanup()
}
else
{
- iter++;
+ ++iter;
}
}
}