We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c3d083 commit ad4cf34Copy full SHA for ad4cf34
1 file changed
src/gameobjects/components/LoadTexture.js
@@ -65,9 +65,11 @@ Phaser.Component.LoadTexture.prototype = {
65
else if (Phaser.Video && key instanceof Phaser.Video)
66
{
67
// This works from a reference, which probably isn't what we need here
68
+ var valid = key.texture.valid;
69
this.setTexture(key.texture);
70
this.setFrame(key.texture.frame.clone());
71
key.onChangeSource.add(this.resizeFrame, this);
72
+ this.texture.valid = valid;
73
}
74
else if (key instanceof PIXI.Texture)
75
0 commit comments