fixed #11821, after release StateBlock::_defaultState, set it to null, because developers would reconstruct it.

This commit is contained in:
walzer 2015-05-18 10:44:49 +08:00
parent 56070da720
commit 02f295dfbf
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ void RenderState::initialize()
void RenderState::finalize()
{
CC_SAFE_RELEASE(StateBlock::_defaultState);
CC_SAFE_RELEASE_NULL(StateBlock::_defaultState);
}
bool RenderState::init(RenderState* parent)