Skip to content

Commit 886ca7e

Browse files
author
David Gillen
committed
pull duplicate texture property commands
1 parent 0d07723 commit 886ca7e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/easeljs/display/StageGL.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2816,10 +2816,8 @@ this.createjs = this.createjs||{};
28162816
gl.uniformMatrix4fv(shaderProgram.pMatrixUniform, gl.FALSE, this._projectionMatrix);
28172817

28182818
for (var i = 0; i < this._batchTextureCount; i++) {
2819-
var texture = this._batchTextures[i];
28202819
gl.activeTexture(gl.TEXTURE0 + i);
2821-
gl.bindTexture(gl.TEXTURE_2D, texture);
2822-
this.setTextureParams(gl, texture.isPOT);
2820+
gl.bindTexture(gl.TEXTURE_2D, this._batchTextures[i]);
28232821
}
28242822

28252823
gl.drawArrays(gl.TRIANGLES, 0, this._batchVertexCount);

0 commit comments

Comments
 (0)