Skip to content
Permalink
Browse files

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

…lidate()

Same thing, less code.
  • Loading branch information...
lioncash committed Aug 5, 2019
1 parent d52dd2e commit 07aa18eb2b7e7649ebac161ecd753ae81a1e5ccd
Showing with 1 addition and 4 deletions.
  1. +1 −4 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;

0 comments on commit 07aa18e

Please sign in to comment.
You can’t perform that action at this time.