Skip to content

Commit ad4cf34

Browse files
committed
LoadTexture remembers texture valid state.
1 parent 6c3d083 commit ad4cf34

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/gameobjects/components/LoadTexture.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ Phaser.Component.LoadTexture.prototype = {
6565
else if (Phaser.Video && key instanceof Phaser.Video)
6666
{
6767
// This works from a reference, which probably isn't what we need here
68+
var valid = key.texture.valid;
6869
this.setTexture(key.texture);
6970
this.setFrame(key.texture.frame.clone());
7071
key.onChangeSource.add(this.resizeFrame, this);
72+
this.texture.valid = valid;
7173
}
7274
else if (key instanceof PIXI.Texture)
7375
{

0 commit comments

Comments
 (0)