RemoveAndUnload the texture, then reload and reassign it, seems useless.

Started by kiffa, March 27, 2013, 01:53:02 PM

Previous topic - Next topic

kiffa

removeAndUnload() the texture, then reload the texture, the obj seems still rendering with the dummy texture:


car.setTexture("car");

TextureManager.getInstance().removeAndUnload("car", getFrameBuffer());

Texture t = new Texture(in, false);
TextureManager.getInstance().addTexture("car", t);
TextureManager.getInstance().prewarm(getFrameBuffer());
car.setTexture("car");



And if i don't remveAndUnload, just replace it, the result is correct.


EgonOlsen