diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index 8b887b1..41d95f5 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -392,8 +392,6 @@ width, height; - var resolution = texture.baseTexture.resolution / renderer.resolution; - renderer.context.globalAlpha = this.worldAlpha; // If smoothingEnabled is supported and we need to change the smoothing property for this texture @@ -464,6 +462,8 @@ } + var resolution = texture.baseTexture.resolution; + if (this.tint !== 0xFFFFFF) { if (this.cachedTint !== this.tint) @@ -478,10 +478,10 @@ this.tintedTexture, 0, 0, - width * resolution * renderer.resolution, - height * resolution * renderer.resolution, - dx, - dy, + width * resolution, + height * resolution, + dx * renderer.resolution, + dy * renderer.resolution, width * renderer.resolution, height * renderer.resolution ); @@ -492,10 +492,10 @@ texture.baseTexture.source, texture.crop.x * resolution, texture.crop.y * resolution, - width * resolution * renderer.resolution, - height * resolution * renderer.resolution, - dx, - dy, + width * resolution, + height * resolution, + dx * renderer.resolution, + dy * renderer.resolution, width * renderer.resolution, height * renderer.resolution );