mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-17 12:58:55 +02:00
fix last commit by neobrain
This commit is contained in:
@ -129,13 +129,12 @@ void TextureCache::Cleanup()
|
|||||||
TexCache::iterator tcend = textures.end();
|
TexCache::iterator tcend = textures.end();
|
||||||
while (iter != tcend)
|
while (iter != tcend)
|
||||||
{
|
{
|
||||||
if (frameCount > TEXTURE_KILL_THRESHOLD + iter->second->frameCount)
|
if ( frameCount > TEXTURE_KILL_THRESHOLD + iter->second->frameCount
|
||||||
{
|
|
||||||
// EFB copies living on the host GPU are unrecoverable and thus shouldn't be deleted
|
// EFB copies living on the host GPU are unrecoverable and thus shouldn't be deleted
|
||||||
// TODO: encoding the texture back to RAM here might be a good idea
|
// TODO: encoding the texture back to RAM here might be a good idea
|
||||||
if (g_ActiveConfig.bCopyEFBToTexture && iter->second->IsEfbCopy())
|
&& ! (g_ActiveConfig.bCopyEFBToTexture && iter->second->IsEfbCopy()) )
|
||||||
continue;
|
{
|
||||||
|
|
||||||
delete iter->second;
|
delete iter->second;
|
||||||
textures.erase(iter++);
|
textures.erase(iter++);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user