mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Iterator erase pattern
This commit is contained in:
@@ -81,7 +81,7 @@ void GLProgramStateCache::removeUnusedGLProgramState()
|
||||
CCLOG("cocos2d: GLProgramStateCache: removing unused GLProgramState");
|
||||
|
||||
//value->release();
|
||||
_glProgramStates.erase(it++);
|
||||
it = _glProgramStates.erase(it);
|
||||
} else {
|
||||
++it;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user