In a few words:
new Image("some.png",true); //returns a flipped image . OK
new Image("some.png",false); //returns a flipped image . KO!
This is because then InternalTextureLoader cache index does not take into account the flipped boolean.
- The first call records the flipped buffer in the map with the key "some.png"
- The second call records reuse the flipped buffer in the map with the key "some.png"
InternalTextureLoader.getTexture should handle flipped argument the same way as transparent argument.
Why is the image loader flipping the image buffer ? It encourages to have two buffers, one for each flipped image. Shouldn't it be easier to reuse getFlippedCopy ?