mirror of https://github.com/axmolengine/axmol.git
fixed #11821, after release StateBlock::_defaultState, set it to null, because developers would reconstruct it.
This commit is contained in:
parent
56070da720
commit
02f295dfbf
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue