Skip to content

Commit

Permalink
warning fixes and enabling use of micro buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
David Gillen committed Nov 8, 2018
1 parent 777fd21 commit 58ee855
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/easeljs/display/StageGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -2307,7 +2307,7 @@ this.createjs = this.createjs||{};

if (this.vocalDebug) {
if (isNPOT && this._antialias) {
console.warn("NPOT(Non Power of Two) Texture w/ antialias on: "+ image.src);
console.warn("NPOT(Non Power of Two) Texture with context.antialias true: "+ image.src);
}
if (image.width > gl.MAX_TEXTURE_SIZE || image.height > gl.MAX_TEXTURE_SIZE){
console && console.error("Oversized Texture: "+ image.width+"x"+image.height +" vs "+ gl.MAX_TEXTURE_SIZE +"max");
Expand Down Expand Up @@ -2475,9 +2475,12 @@ this.createjs = this.createjs||{};
}
}

if (shaderData.immediate && this._directDraw) {
if (this.vocalDebug) { console.log("Illegal compositeOperation ["+ newMode +"] due to StageGL.directDraw = true, reverting to default"); }
return;
if (shaderData.immediate) {
if (this._directDraw) {
if (this.vocalDebug) { console.log("Illegal compositeOperation ["+ newMode +"] due to StageGL.directDraw = true, reverting to default"); }
return;
}
this._activeConfig = this._attributeConfig["micro"];
}

gl.bindFramebuffer(gl.FRAMEBUFFER, this._batchTextureOutput._frameBuffer);
Expand Down Expand Up @@ -2829,6 +2832,7 @@ this.createjs = this.createjs||{};
this._batchVertexCount += StageGL.INDICIES_PER_CARD;

if (this._immediateRender) {
this._activeConfig = this._attributeConfig["default"];
this._immediateBatchRender();
}

Expand Down

0 comments on commit 58ee855

Please sign in to comment.