gilamran Posted September 6, 2014 Share Posted September 6, 2014 In BaseTexture.prototype.destroy function Pixi set the this.source.src to null, this will cause a server request to http://localhost:9000/null (In my case).To fix this, we need to set the this.source.src to an empty string and not null. Am I right? Quote Link to comment Share on other sites More sharing options...
hubert Posted September 6, 2014 Share Posted September 6, 2014 Not really.... Can you give us some code. There was already a thread about destroying textures here: http://www.html5gamedevs.com/topic/8832-can-we-dispose-of-an-asset/ Try looking here at first maybe you made an error somewhere? http://www.sevenative.com Quote Link to comment Share on other sites More sharing options...
Sebi Posted September 6, 2014 Share Posted September 6, 2014 Not sure why pixi is setting the src to null. You should be able to just remove that line since pixi will unset the source itself "this.source = null;" a few lines later anyway. Quote Link to comment Share on other sites More sharing options...
hubert Posted September 7, 2014 Share Posted September 7, 2014 oh and what version of pixi do you use? http://www.sevenative.com Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.