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
3
.gitignore
vendored
3
.gitignore
vendored
@ -11,4 +11,5 @@ spine-cocos2dx/cocos2dx/
|
|||||||
!spine-cocos2dx/cocos2dx/Place cocos2dx here.txt
|
!spine-cocos2dx/cocos2dx/Place cocos2dx here.txt
|
||||||
*.swp
|
*.swp
|
||||||
.DS_Store
|
.DS_Store
|
||||||
xcuserdata
|
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 () {
|
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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user