mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
VideoCommon/TextureCacheBase: Collapse for loop into a fill() in Invalidate()
Same thing, less code.
This commit is contained in:
parent
d52dd2e04f
commit
07aa18eb2b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user