mirror of https://github.com/axmolengine/axmol.git
Fix live2d sdk crash issue
This commit is contained in:
parent
1ae9cd33ae
commit
a00d594ba0
|
@ -108,7 +108,6 @@ CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::DrawCommand* CubismCommandBuffe
|
||||||
CubismCommandBuffer_Cocos2dx::CubismCommandBuffer_Cocos2dx()
|
CubismCommandBuffer_Cocos2dx::CubismCommandBuffer_Cocos2dx()
|
||||||
:_currentColorBuffer(NULL)
|
:_currentColorBuffer(NULL)
|
||||||
{
|
{
|
||||||
_groupCommand.init(0.0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CubismCommandBuffer_Cocos2dx::~CubismCommandBuffer_Cocos2dx()
|
CubismCommandBuffer_Cocos2dx::~CubismCommandBuffer_Cocos2dx()
|
||||||
|
@ -117,8 +116,10 @@ CubismCommandBuffer_Cocos2dx::~CubismCommandBuffer_Cocos2dx()
|
||||||
|
|
||||||
void CubismCommandBuffer_Cocos2dx::PushCommandGroup()
|
void CubismCommandBuffer_Cocos2dx::PushCommandGroup()
|
||||||
{
|
{
|
||||||
GetCocos2dRenderer()->addCommand(&_groupCommand);
|
auto groupCommand = GetCocos2dRenderer()->getNextGroupCommand();
|
||||||
GetCocos2dRenderer()->pushGroup(_groupCommand.getRenderQueueID());
|
groupCommand->init(0.0);
|
||||||
|
GetCocos2dRenderer()->addCommand(groupCommand);
|
||||||
|
GetCocos2dRenderer()->pushGroup(groupCommand->getRenderQueueID());
|
||||||
}
|
}
|
||||||
|
|
||||||
void CubismCommandBuffer_Cocos2dx::PopCommandGroup()
|
void CubismCommandBuffer_Cocos2dx::PopCommandGroup()
|
||||||
|
|
|
@ -160,7 +160,6 @@ private:
|
||||||
|
|
||||||
backend::TextureBackend* _currentColorBuffer;
|
backend::TextureBackend* _currentColorBuffer;
|
||||||
OperationStateData _operationStateArray[OperationType_TypeMax];
|
OperationStateData _operationStateArray[OperationType_TypeMax];
|
||||||
ax::GroupCommand _groupCommand;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}}}}
|
}}}}
|
||||||
|
|
Loading…
Reference in New Issue