From 9202308c71754c1e06f03bbc21d4ee9c78bb85be Mon Sep 17 00:00:00 2001 From: Stefan Nguyen Date: Tue, 26 Mar 2013 18:02:07 +0700 Subject: [PATCH] uses ccGLBlendFunc instead of glBlendFunc so that Cocos2dx automatically preserve and switch back to old OpenGL mode See ccConfig.h line 50 --- spine-cocos2dx/src/spine-cocos2dx/CCSkeleton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-cocos2dx/src/spine-cocos2dx/CCSkeleton.cpp b/spine-cocos2dx/src/spine-cocos2dx/CCSkeleton.cpp index 627287877..347e511af 100644 --- a/spine-cocos2dx/src/spine-cocos2dx/CCSkeleton.cpp +++ b/spine-cocos2dx/src/spine-cocos2dx/CCSkeleton.cpp @@ -67,7 +67,7 @@ void CCSkeleton::update (float deltaTime) { void CCSkeleton::draw () { CC_NODE_DRAW_SETUP(); - glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); + ccGLBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); skeleton->draw(); if (debug) {