From 07aa18eb2b7e7649ebac161ecd753ae81a1e5ccd Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 4 Aug 2019 23:30:24 -0400 Subject: [PATCH] VideoCommon/TextureCacheBase: Collapse for loop into a fill() in Invalidate() Same thing, less code. --- Source/Core/VideoCommon/TextureCacheBase.cpp | 5 +---- 1 file changed, 1 insertion(+), 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;