Skip to content

Commit

Permalink
[cocos2dx] Initializing skeleton setup poses and world transform on c…
Browse files Browse the repository at this point in the history
…onstruction to avoid flicked in first frame. Closes #1098
  • Loading branch information
badlogic committed Apr 12, 2018
1 parent fb2ce44 commit 7647c34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spine-cocos2dx/src/spine/SkeletonRenderer.cpp
Expand Up @@ -101,6 +101,9 @@ void SkeletonRenderer::initialize () {
setOpacityModifyRGB(true);

setupGLProgramState(false);

spSkeleton_setToSetupPose(_skeleton);
spSkeleton_updateWorldTransform(_skeleton);
}

void SkeletonRenderer::setupGLProgramState (bool twoColorTintEnabled) {
Expand Down

0 comments on commit 7647c34

Please sign in to comment.