diff options
Diffstat (limited to 'src/test/com')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/graph/demos/ui/Label.java | 2 | ||||
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/graph/demos/ui/UIShape.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/graph/demos/ui/Label.java b/src/test/com/jogamp/opengl/test/junit/graph/demos/ui/Label.java index 4d79e5ad7..99ac2bd51 100644 --- a/src/test/com/jogamp/opengl/test/junit/graph/demos/ui/Label.java +++ b/src/test/com/jogamp/opengl/test/junit/graph/demos/ui/Label.java @@ -106,7 +106,7 @@ public class Label extends UIShape { @Override protected void createShape(GL2ES2 gl, RegionRenderer renderer) { - TextRegionUtil.processString(shapeVisitor, new AffineTransform(renderer.getRenderState().getVertexFactory()), font, pixelSize, text); + TextRegionUtil.processString(shapeVisitor, new AffineTransform(), font, pixelSize, text); } @Override diff --git a/src/test/com/jogamp/opengl/test/junit/graph/demos/ui/UIShape.java b/src/test/com/jogamp/opengl/test/junit/graph/demos/ui/UIShape.java index 768c95765..0768601bf 100644 --- a/src/test/com/jogamp/opengl/test/junit/graph/demos/ui/UIShape.java +++ b/src/test/com/jogamp/opengl/test/junit/graph/demos/ui/UIShape.java @@ -227,12 +227,12 @@ public abstract class UIShape { System.err.printf("UIShape.addToRegion: locTranslate %f x %f, locScale %f x %f%n", ltranslate[0], ltranslate[1], lscale[0], lscale[1]); if( hasLocTrans ) { - t = AffineTransform.getTranslateInstance(vertexFactory, ltranslate[0], ltranslate[1]); + t = AffineTransform.getTranslateInstance(ltranslate[0], ltranslate[1]); if( hasLocScale ) { t.scale(lscale[0], lscale[1]); } } else if( hasLocScale ) { - t = AffineTransform.getScaleInstance(vertexFactory, lscale[0], lscale[1]); + t = AffineTransform.getScaleInstance(lscale[0], lscale[1]); } else { t = null; // unreachable! } |