mirror of https://github.com/axmolengine/axmol.git
[Cpp-tests-->SpriteOffsetAnchorRotation]Fixed crash when enter `SpriteOffsetAnchorRotation` test case again after a auto-tested.
This commit is contained in:
parent
1875829ab4
commit
94c0c0c3fc
|
@ -350,6 +350,7 @@ TestCase::TestCase()
|
|||
, _runTime(0.0f)
|
||||
{
|
||||
Director::getInstance()->getTextureCache()->removeUnusedTextures();
|
||||
SpriteFrameCache::getInstance()->removeUnusedSpriteFrames();
|
||||
|
||||
this->schedule([&](float dt){
|
||||
_runTime += dt;
|
||||
|
|
Loading…
Reference in New Issue