Strange texture problem

Hello once again,



So, say we have an animation running (reads input from a file to animate), and we have a drop box to choose from which file the animation runs.  Now, the following code is added to the CBListener private class (much akin to the FengJME example):


currSelected = list.getSelectedValue();
            clockdisp.killClockDisplay();
            
            try {
               Thread.sleep(1000);
            } catch (InterruptedException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
               System.out.println("Blah, angry!");
            }
            
            clockdisp = new ClockDisplay(userList.get(currSelected));
            rootNode.attachChild(clockdisp.getClockNode());
//in ClockDisplay
protected void killClockDisplay() {
      Node rootNode = clockNode.getParent();
      clockNode.removeFromParent();
      rootNode.updateGeometricState(allST.getCurTime(), true);
      clockNode.updateGeometricState(allST.getCurTime(), false);
      
      Runtime r = Runtime.getRuntime();
      r.gc();
   }



Annnnnnd, while it swaps the animation properly, the resulting texture displayed by clockdisp is the texture used by the font, instead of the solid color like I tell it use.



Frankly, I'm at a loss.  The constructor for ClockDisplay specifically calls setSolidColor() on the two circles; the left is correct-looking.  What would cause this kind of error, and what can I do to fix it?

Thank you for reading, and I'm sorry to bug y'all again with questions.

You're missing an updateRenderState() call. Try:


clockdisp = new ClockDisplay(userList.get(currSelected));
rootNode.attachChild(clockdisp.getClockNode());

// Added this
clockdisp.getClockNode().updateRenderstate();