@@ -8982,7 +8982,7 @@ this.createjs = this.createjs||{};
89828982 * @type {Boolean}
89838983 * @default false
89848984 */
8985- this._directDraw = directDraw === undefined ? true : false ;
8985+ this._directDraw = directDraw === undefined ? true : (!!directDraw) ;
89868986
89878987 /**
89888988 * The width in px of the drawing surface saved in memory.
@@ -10047,6 +10047,8 @@ this.createjs = this.createjs||{};
1004710047 gl.enable(gl.BLEND);
1004810048 gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true);
1004910049 gl.clearColor(0.0, 0.0, 0.0, 0);
10050+ gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_ADD);
10051+ gl.blendFuncSeparate(gl.ONE, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
1005010052
1005110053 this._createBuffers();
1005210054 this._initMaterials();
@@ -11198,7 +11200,7 @@ this.createjs = this.createjs||{};
1119811200 this._activeShader = this._mainShader;
1119911201
1120011202 gl.bindFramebuffer(gl.FRAMEBUFFER, this._batchTextureOutput._frameBuffer);
11201- gl.clear(gl.COLOR_BUFFER_BIT);
11203+ if(this._batchTextureOutput._frameBuffer !== null) { gl.clear(gl.COLOR_BUFFER_BIT); }
1120211204
1120311205 this._appendToBatch(content, new createjs.Matrix2D(), this.alpha, ignoreCache);
1120411206
@@ -11314,7 +11316,7 @@ this.createjs = this.createjs||{};
1131411316 item._updateState();
1131511317 }
1131611318
11317- if(!ignoreCache && item.cacheCanvas === null && item.filters !== null && item.filters.length) {
11319+ if(!this._directDraw && (! ignoreCache && item.cacheCanvas === null && item.filters !== null && item.filters.length) ) {
1131811320 var bounds;
1131911321 if (item.bitmapCache === null) {
1132011322 bounds = item.getBounds();
@@ -17461,6 +17463,6 @@ this.createjs = this.createjs || {};
1746117463 * @type String
1746217464 * @static
1746317465 **/
17464- s.buildDate = /*=date*/"Thu, 05 Apr 2018 20:11:12 GMT"; // injected by build process
17466+ s.buildDate = /*=date*/"Fri, 06 Apr 2018 15:06:22 GMT"; // injected by build process
1746517467
1746617468})();
0 commit comments