\r
RenderFontJme jmeFont = (RenderFontJme) font;\r
\r
- BitmapText text = textCacheLastFrame.get(font+str+color);\r
+ String key = font+str+color.getColorString();\r
+ BitmapText text = textCacheLastFrame.get(key);\r
if (text == null) {\r
text = jmeFont.createText();\r
text.setText(str);\r
text.updateLogicalState(0);\r
}\r
- textCacheCurrentFrame.put(font+str+color, text);\r
+ textCacheCurrentFrame.put(key, text);\r
\r
niftyMat.setColor("Color", convertColor(color, tempColor));\r
niftyMat.setBoolean("UseTex", true);\r