You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An empty texture, used often to not have to create multiple empty textures.
Texture.EMPTY = new Texture(new BaseTexture());
Well, very useful, but when executing container.destroy(true), you may destroy this EMPTY texture too.
Shouldn't it an immutable object? Or at least not destroyable?
I suggest to add the following line to pixi code, to fix this problem.
Texture.EMPTY.destroy = function(){};
The text was updated successfully, but these errors were encountered:
Texture.EMPTY = new Texture(new BaseTexture());
Well, very useful, but when executing container.destroy(true), you may destroy this EMPTY texture too.
Shouldn't it an immutable object? Or at least not destroyable?
I suggest to add the following line to pixi code, to fix this problem.
Texture.EMPTY.destroy = function(){};
The text was updated successfully, but these errors were encountered: