Hey folks,
I'm using jME 2 and FengGUI (svn trunk). I just started using the (very nice) TextLabel2D utility posted on this wiki page:
http://www.jmonkeyengine.com/wiki/doku.php?id=billboard_awt_label&s[]=textlabel2d
Since I added TextLabel2D, I now get an annoying "white flash" when I click on something in a FengGUI window. To be clear: I don't get the flash at all if I comment-out the TextLabel2D instances, the flash only occurs when I instigate FengGUI click event, and moreover I only get the flas when the TextLabel2D widgets are on-screen.
The code for TextLabel2D is on the wiki page linked above.
Here is my code for integrating FengGUI (FengGuiState extends BasicGameState):
@Override
public void render(float tpf) {
// set a default TextureState, this is needed to not let FengGUI inherit
// wrong Texture coordinates and stuff.
Texture defTex = TextureState.getDefaultTexture().createSimpleClone();
defTex.setScale(new Vector3f(1, 1, 1));
TextureState defaultTextureState = DisplaySystem.getDisplaySystem().getRenderer().createTextureState();
defaultTextureState.setTexture(defTex);
defaultTextureState.apply();
fengGui.display();
DisplaySystem.getDisplaySystem().getCurrentContext().invalidateStates();
}