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();
|
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;
|
||||||
|
|
Loading…
Reference in New Issue