mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
VideoCommon/TextureCacheBase: Collapse for loop into a fill() in Invalidate()
Same thing, less code.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user