mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 23:05:01 +08:00
uses ccGLBlendFunc instead of glBlendFunc
so that Cocos2dx automatically preserve and switch back to old OpenGL mode See ccConfig.h line 50
This commit is contained in:
parent
d20ada65fb
commit
9202308c71
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user