diff options
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; |
