VideoCommon/TextureCacheBase: Collapse for loop into a fill() in Invalidate()

Same thing, less code.
This commit is contained in:
Lioncash 2019-08-04 23:30:24 -04:00
parent d52dd2e04f
commit 07aa18eb2b
1 changed files with 1 additions and 4 deletions

View File

@ -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;