summaryrefslogtreecommitdiffstats
path: root/src/jogamp/graph/curve/opengl/TextRendererImpl01.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogamp/graph/curve/opengl/TextRendererImpl01.java')
-rw-r--r--src/jogamp/graph/curve/opengl/TextRendererImpl01.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jogamp/graph/curve/opengl/TextRendererImpl01.java b/src/jogamp/graph/curve/opengl/TextRendererImpl01.java
index aa3202805..cebe7a19e 100644
--- a/src/jogamp/graph/curve/opengl/TextRendererImpl01.java
+++ b/src/jogamp/graph/curve/opengl/TextRendererImpl01.java
@@ -176,11 +176,10 @@ public class TextRendererImpl01 extends TextRenderer {
if(!isInitialized()){
throw new GLException("TextRendererImpl01: not initialized!");
}
- String fontStrHash = getTextHashCode(font, str, fontSize);
- GlyphString glyphString = strings.get(fontStrHash);
+ GlyphString glyphString = getCachedGlyphString(font, str, fontSize);
if(null == glyphString) {
glyphString = createString(gl, font, fontSize, str, mgl_sharpness.floatValue());
- strings.put(fontStrHash, glyphString);
+ addCachedGlyphString(font, str, fontSize, glyphString);
}
glyphString.renderString3D(pmvMatrix, vp_width, vp_height, texSize);