summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-08-04 23:30:24 -0400
committerLioncash <mathew1800@gmail.com>2019-08-04 23:30:27 -0400
commit07aa18eb2b7e7649ebac161ecd753ae81a1e5ccd (patch)
tree2fc2985946ca0d4f9a566e3ba458e19d30191903 /Source/Core/VideoCommon/TextureCacheBase.cpp
parentd52dd2e04f9e6e5dd7c690e5a485d7b32d61e7de (diff)
VideoCommon/TextureCacheBase: Collapse for loop into a fill() in Invalidate()
Same thing, less code.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index 10f3b9f293..2951573908 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -122,11 +122,8 @@ void TextureCacheBase::Invalidate()
{
FlushEFBCopies();
InvalidateAllBindPoints();
- for (size_t i = 0; i < bound_textures.size(); ++i)
- {
- bound_textures[i] = nullptr;
- }
+ bound_textures.fill(nullptr);
for (auto& tex : textures_by_address)
{
delete tex.second;