update scale modes constants
This commit is contained in:
parent
802ebc5c4f
commit
316c1bcf44
3 changed files with 3 additions and 5 deletions
|
@ -325,7 +325,7 @@ PIXI.Sprite.prototype._renderCanvas = function(renderSession)
|
|||
//if smoothingEnabled is supported and we need to change the smoothing property for this texture
|
||||
if(renderSession.smoothProperty && renderSession.scaleMode !== this.texture.baseTexture.scaleMode) {
|
||||
renderSession.scaleMode = this.texture.baseTexture.scaleMode;
|
||||
context[renderSession.smoothProperty] = (renderSession.scaleMode === PIXI.BaseTexture.SCALE_MODE.LINEAR);
|
||||
context[renderSession.smoothProperty] = (renderSession.scaleMode === PIXI.scaleModes.LINEAR);
|
||||
}
|
||||
|
||||
if(this.tint !== 0xFFFFFF)
|
||||
|
|
|
@ -39,8 +39,8 @@ PIXI.BaseTexture = function(source, scaleMode)
|
|||
/**
|
||||
* The scale mode to apply when scaling this texture
|
||||
* @property scaleMode
|
||||
* @type PIXI.BaseTexture.SCALE_MODE
|
||||
* @default PIXI.BaseTexture.SCALE_MODE.LINEAR
|
||||
* @type PIXI.scaleModes
|
||||
* @default PIXI.scaleModes.LINEAR
|
||||
*/
|
||||
this.scaleMode = scaleMode || PIXI.scaleModes.DEFAULT;
|
||||
|
||||
|
|
|
@ -228,5 +228,3 @@ PIXI.Texture.removeTextureFromCache = function(id)
|
|||
|
||||
// this is more for webGL.. it contains updated frames..
|
||||
PIXI.Texture.frameUpdates = [];
|
||||
|
||||
PIXI.Texture.SCALE_MODE = PIXI.BaseTexture.SCALE_MODE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue