From 348c43a12199e71017767930b0b42d939db47312 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 10 Jun 2010 06:14:44 +0200 Subject: Adding GLProfile.initSingleton() call, ensuring [multithreading] intitialization can be done in time --- src/demos/j2d/TestOverlay.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/demos/j2d/TestOverlay.java') diff --git a/src/demos/j2d/TestOverlay.java b/src/demos/j2d/TestOverlay.java index 13cb39e..28c30fa 100755 --- a/src/demos/j2d/TestOverlay.java +++ b/src/demos/j2d/TestOverlay.java @@ -54,6 +54,7 @@ import java.awt.event.WindowEvent; import java.awt.font.FontRenderContext; import java.awt.font.GlyphVector; import java.text.DecimalFormat; +import javax.media.opengl.GLProfile; import javax.media.opengl.GL; import javax.media.opengl.GLAutoDrawable; import javax.media.opengl.GLCapabilities; @@ -65,6 +66,9 @@ import com.jogamp.opengl.util.Animator; with moving Java 2D-rendered text on top. */ public class TestOverlay implements GLEventListener { + static { + GLProfile.initSingleton(); + } public static void main(String[] args) { Frame frame = new Frame("Java 2D Overlay Test"); GLCapabilities caps = new GLCapabilities(null); -- cgit v1.2.3