From 5ae7a470e7d99a58b528d13c16d0842129b2b18e Mon Sep 17 00:00:00 2001 From: codeanticode Date: Sun, 16 Nov 2014 08:05:39 -0700 Subject: [PATCH] don't use JOGL's FBO backing, use manual backing only when requested --- core/src/processing/opengl/PJOGL.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/processing/opengl/PJOGL.java b/core/src/processing/opengl/PJOGL.java index 4be0872b3..d6b3d0ee2 100644 --- a/core/src/processing/opengl/PJOGL.java +++ b/core/src/processing/opengl/PJOGL.java @@ -1397,9 +1397,7 @@ public class PJOGL extends PGL { public FontOutline(char ch, Object font) { char textArray[] = new char[] { ch }; - // ??????????????? -// Graphics2D graphics = (Graphics2D) pg.parent.getGraphics(); - Graphics2D graphics = null; + Graphics2D graphics = (Graphics2D) pg.parent.frame.getGraphics(); FontRenderContext frc = graphics.getFontRenderContext(); GlyphVector gv = ((Font)font).createGlyphVector(frc, textArray); Shape shp = gv.getOutline();