We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a45ad2 commit 9caa13eCopy full SHA for 9caa13e
1 file changed
src/pixi/extras/TilingSprite.js
@@ -404,7 +404,8 @@ PIXI.TilingSprite.prototype.generateTilingTexture = function(forcePowerOfTwo)
404
targetWidth = PIXI.getNextPowerOfTwo(frame.width);
405
targetHeight = PIXI.getNextPowerOfTwo(frame.height);
406
407
- if (frame.width !== targetWidth || frame.height !== targetHeight) newTextureRequired = true;
+ // If the BaseTexture dimensions don't match the texture frame then we need a new texture anyway because it's part of a texture atlas
408
+ if (frame.width !== targetWidth || frame.height !== targetHeight || texture.baseTexture.width !== targetWidth || texture.baseTexture.height || targetHeight) newTextureRequired = true;
409
}
410
411
if (newTextureRequired)
0 commit comments