Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
VideoCommon: fix custom textures
This fix a regression by revision 6cece6b

delete pointer must not do anything if pointer==NULL.
  • Loading branch information
degasus committed Nov 7, 2013
1 parent c33036a commit ea2d8bf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Source/Core/VideoCommon/Src/TextureCacheBase.cpp
Expand Up @@ -470,8 +470,11 @@ TextureCache::TCacheEntryBase* TextureCache::Load(unsigned int const stage,
expandedHeight = height;

// If we thought we could reuse the texture before, make sure to pool it now!
PoolTexture(entry);
entry = NULL;
if(entry)
{
PoolTexture(entry);
entry = NULL;
}
}
using_custom_texture = true;
}
Expand Down

0 comments on commit ea2d8bf

Please sign in to comment.