Skip to content

Commit d1bad8a

Browse files
committed
Set PMA to true
1 parent 8cc91ce commit d1bad8a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

plugins/spine/src/SpinePlugin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ var SpinePlugin = new Class({
154154

155155
this.skeletonRenderer = new runtime.SkeletonRenderer(gl);
156156

157+
this.skeletonRenderer.premultipliedAlpha = true;
158+
157159
this.shapes = new runtime.ShapeRenderer(gl);
158160

159161
this.debugRenderer = new runtime.SkeletonDebugRenderer(gl);
@@ -189,7 +191,7 @@ var SpinePlugin = new Class({
189191

190192
atlas = new Spine.TextureAtlas(atlasData, function (path)
191193
{
192-
var glTexture = new Spine.webgl.GLTexture(gl, textures.get(path).getSourceImage());
194+
var glTexture = new Spine.webgl.GLTexture(gl, textures.get(path).getSourceImage(), false);
193195

194196
spineTextures.add(key, glTexture);
195197

0 commit comments

Comments
 (0)