diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-08-04 23:30:24 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-08-04 23:30:27 -0400 |
| commit | 07aa18eb2b7e7649ebac161ecd753ae81a1e5ccd (patch) | |
| tree | 2fc2985946ca0d4f9a566e3ba458e19d30191903 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | d52dd2e04f9e6e5dd7c690e5a485d7b32d61e7de (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.cpp | 5 |
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; |
