Skip to content

Commit 5e63e87

Browse files
committed
Fixed issue with incorrect order in ternary operator in StageGL
1 parent 8da9f72 commit 5e63e87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/easeljs/display/StageGL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ this.createjs = this.createjs||{};
16151615
insert += "} else if (indexPicker <= "+ i +".5) { color = texture2D(uSampler["+ i +"], vTextureCoord);";
16161616
}
16171617
str = str.replace(/{{alternates}}/g, insert);
1618-
str = str.replace(/{{fragColor}}/g, this._premultiply ? StageGL.REGULAR_FRAG_COLOR_NORMAL : StageGL.REGULAR_FRAG_COLOR_PREMULTIPLY);
1618+
str = str.replace(/{{fragColor}}/g, this._premultiply ? StageGL.REGULAR_FRAG_COLOR_PREMULTIPLY : StageGL.REGULAR_FRAG_COLOR_NORMAL);
16191619

16201620
// actually compile the shader
16211621
var shader = gl.createShader(type);

0 commit comments

Comments
 (0)