removeAllLocales solves missing texture problem but is it a safe call?
In an earlier post, I describe a problem that I have with two canvases attached to the same view. If I preview lots of 2D images, with JFileChooser (see the Swing tutorial), and then create the universe with the view and the two canvases, in the second canvas, some of the textures are missing and the objects simply appear white.
I have stumbled across a workaround that removes the problem. If I call universe.removeAllLocales() immediately after creating the VirtualUniverse and before adding a locale or anything else, I do not get the problem.
I've taken a look at the source for VirtualUniverse removeAllLocales and the only thing that I think could be helping me is the call to the static MasterControl which performs some cleaning up operations. Quite frankly, that's where my comprehension ends.
My questions are:
1. Is my workaround safe? Is it ok for me to call removeAllLocales immediately after creating a VirtualUniverse and then going on to use that universe?
2. Wouldn't the need for my workaround suggest that there is a problem here that needs resolving?