mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06: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();
|
FlushEFBCopies();
|
||||||
InvalidateAllBindPoints();
|
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)
|
for (auto& tex : textures_by_address)
|
||||||
{
|
{
|
||||||
delete tex.second;
|
delete tex.second;
|
||||||
|
Reference in New Issue
Block a user