diff options
Diffstat (limited to 'src/demos/j2d/TestTextRenderer.java')
-rwxr-xr-x | src/demos/j2d/TestTextRenderer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/demos/j2d/TestTextRenderer.java b/src/demos/j2d/TestTextRenderer.java index 5d93558..d5ec735 100755 --- a/src/demos/j2d/TestTextRenderer.java +++ b/src/demos/j2d/TestTextRenderer.java @@ -50,6 +50,7 @@ import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.geom.Rectangle2D; +import javax.media.opengl.GLProfile; import javax.media.opengl.GL; import javax.media.opengl.GLAutoDrawable; import javax.media.opengl.GLCapabilities; @@ -63,6 +64,9 @@ import com.jogamp.opengl.util.Animator; with moving Java 2D-rendered text on top. */ public class TestTextRenderer implements GLEventListener { + static { + GLProfile.initSingleton(); + } public static void main(String[] args) { Frame frame = new Frame("Text Renderer Test"); |