瀏覽代碼

uses ccGLBlendFunc instead of glBlendFunc

so that Cocos2dx automatically preserve and switch back to old OpenGL mode
See ccConfig.h line 50
Stefan Nguyen 12 年之前
父節點
當前提交
9202308c71
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-cocos2dx/src/spine-cocos2dx/CCSkeleton.cpp

+ 1 - 1
spine-cocos2dx/src/spine-cocos2dx/CCSkeleton.cpp

@@ -67,7 +67,7 @@ void CCSkeleton::update (float deltaTime) {
 
 
 void CCSkeleton::draw () {
 void CCSkeleton::draw () {
 	CC_NODE_DRAW_SETUP();
 	CC_NODE_DRAW_SETUP();
-	glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
+	ccGLBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
 	skeleton->draw();
 	skeleton->draw();
 
 
 	if (debug) {
 	if (debug) {