mirror of https://github.com/axmolengine/axmol.git
commit
627e5dacfc
|
@ -80,7 +80,7 @@ void GLProgramStateCache::removeUnusedGLProgramState()
|
|||
if( value->getReferenceCount() == 1 ) {
|
||||
CCLOG("cocos2d: GLProgramStateCache: removing unused GLProgramState");
|
||||
|
||||
value->release();
|
||||
//value->release();
|
||||
_glProgramStates.erase(it++);
|
||||
} else {
|
||||
++it;
|
||||
|
|
Loading…
Reference in New Issue