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