Navigation Menu

Skip to content

Commit

Permalink
fix last commit by neobrain
Browse files Browse the repository at this point in the history
  • Loading branch information
degasus committed Feb 25, 2013
1 parent 73a0bdd commit d173d64
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Source/Core/VideoCommon/Src/TextureCacheBase.cpp
Expand Up @@ -129,13 +129,12 @@ void TextureCache::Cleanup()
TexCache::iterator tcend = textures.end();
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
// TODO: encoding the texture back to RAM here might be a good idea
if (g_ActiveConfig.bCopyEFBToTexture && iter->second->IsEfbCopy())
continue;

&& ! (g_ActiveConfig.bCopyEFBToTexture && iter->second->IsEfbCopy()) )
{
delete iter->second;
textures.erase(iter++);
}
Expand Down

0 comments on commit d173d64

Please sign in to comment.