mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Merge pull request #19 from vinova/master
Use ccGLBlendFunc instead of glBlendFunc in CCSkeleton::draw()
This commit is contained in:
commit
e4e8089340
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,3 +12,4 @@ spine-cocos2dx/cocos2dx/
|
||||
*.swp
|
||||
.DS_Store
|
||||
xcuserdata
|
||||
spine-cocos2dx/example/proj.ios/ExampleSpine.xcodeproj/project.xcworkspace/xcuserdata/*
|
||||
|
||||
Binary file not shown.
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges</key>
|
||||
<true/>
|
||||
<key>SnapshotAutomaticallyBeforeSignificantChanges</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
||||
@ -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