live2D does not work well with Sprite3D
I got a problem that live2d object does not work well with Sprite3D in cocos2d-x, could anyone give me some tips?
Here is the situation:
1. There is a scene with Live2D object created by lua script;
2. close this scene, enter second scene with a Sprite3D object, the Sprite3D object just gone;
3. if delete the live2d object in first scene, or just comment draw function as below
if (live2DModel == NULL)return;
live2DModel->draw(); //comment this
then re-enter second scene, the Sprite3D object appears normally;
according to information generated by Sprite3D object rendering, looks like some resources or render state belong to Sprite3D was corupted, but system throws no error.