mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Oops, will crash if we remove the end?
This commit is contained in:
parent
d73fcebc3f
commit
347eb253dc
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ void TextureCache::Clear(bool delete_them) {
|
|||
// Removes old textures.
|
||||
void TextureCache::Decimate() {
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
for (TexCache::iterator iter = cache.begin(), end = cache.end(); iter != end; ) {
|
||||
for (TexCache::iterator iter = cache.begin(); iter != cache.end(); ) {
|
||||
if (iter->second.lastFrame + TEXTURE_KILL_AGE < gpuStats.numFrames) {
|
||||
glDeleteTextures(1, &iter->second.texture);
|
||||
cache.erase(iter++);
|
||||
|
|
Loading…
Add table
Reference in a new issue