Skip to content

Commit 078600d

Browse files
authored
Merge pull request #3402 from DavidDeSimone/spine-blendfunc-parity
WebGL spine defaults to different blend func than native
2 parents e102082 + bd872b7 commit 078600d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: extensions/spine/CCSkeletonWebGLRenderCmd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
cc.glBlendFunc(cc.ONE, cc.ONE_MINUS_SRC_COLOR);
104104
break;
105105
default:
106-
cc.glBlendFunc(locBlendFunc.src, locBlendFunc.dst);
106+
cc.glBlendFunc(premultiAlpha ? cc.ONE : cc.SRC_ALPHA, cc.ONE_MINUS_SRC_ALPHA);
107107
}
108108
} else if (regionTextureAtlas != textureAtlas && textureAtlas) {
109109
textureAtlas.drawQuads();

0 commit comments

Comments
 (0)