Skip to content

Commit

Permalink
Merge pull request #2464 from ivanpopelyshev/dev-clearfix
Browse files Browse the repository at this point in the history
typo
  • Loading branch information
GoodBoyDigital committed Apr 6, 2016
2 parents fcebfb2 + f4f7893 commit 7fe1cfb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/renderers/canvas/CanvasRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ CanvasRenderer.prototype.render = function (displayObject, renderTexture, clear,
context.clear();
}

if(clear !== undefined || this.clearBeforeRender)
if(clear !== undefined ? clear : this.clearBeforeRender)
{
if (this.renderingToScreen) {
if (this.transparent) {
Expand Down
6 changes: 3 additions & 3 deletions src/core/sprites/Sprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ Sprite.prototype._onTextureUpdate = function ()
}
};

Sprite.prototype.caclulateVertices = function ()
Sprite.prototype.calculateVertices = function ()
{
var texture = this._texture,
wt = this.transform.worldTransform,
Expand Down Expand Up @@ -258,7 +258,7 @@ Sprite.prototype._renderWebGL = function (renderer)
{
this.textureDirty = false;
// set the vertex data
this.caclulateVertices();
this.calculateVertices();
}

renderer.setObjectRenderer(renderer.plugins.sprite);
Expand Down Expand Up @@ -292,7 +292,7 @@ Sprite.prototype.getBounds = function ()
this.vertexDirty = false;

// set the vertex data
this.caclulateVertices();
this.calculateVertices();

}

Expand Down
2 changes: 2 additions & 0 deletions src/core/textures/Texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,10 @@ Texture.removeTextureFromCache = function (id)

/**
* An empty texture, used often to not have to create multiple empty textures.
* Can not be destroyed.
*
* @static
* @constant
*/
Texture.EMPTY = new Texture(new BaseTexture());
Texture.EMPTY.destroy = function() {}

0 comments on commit 7fe1cfb

Please sign in to comment.