summaryrefslogtreecommitdiffstats
path: root/src/demos/testContextDestruction
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-06-10 06:14:44 +0200
committerSven Gothel <[email protected]>2010-06-10 06:14:44 +0200
commit348c43a12199e71017767930b0b42d939db47312 (patch)
tree502a113716308414e1345413dd35072a4b66459f /src/demos/testContextDestruction
parent7bf502292901259eef302ef23b5c558b80f6b3f8 (diff)
Adding GLProfile.initSingleton() call, ensuring [multithreading] intitialization can be done in time
Diffstat (limited to 'src/demos/testContextDestruction')
-rwxr-xr-xsrc/demos/testContextDestruction/TestContextDestruction.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/demos/testContextDestruction/TestContextDestruction.java b/src/demos/testContextDestruction/TestContextDestruction.java
index f1e8649..b2f2571 100755
--- a/src/demos/testContextDestruction/TestContextDestruction.java
+++ b/src/demos/testContextDestruction/TestContextDestruction.java
@@ -50,6 +50,7 @@ import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
+import javax.media.opengl.GLProfile;
import javax.media.opengl.DebugGL2;
import javax.media.opengl.GL;
import javax.media.opengl.GL2ES1;
@@ -67,6 +68,9 @@ import javax.swing.JFrame;
as a GLCanvas is added to and removed from its parent container. */
public class TestContextDestruction {
+ static {
+ GLProfile.initSingleton();
+ }
private int gearDisplayList;
private Frame frame1, frame2;
private Component frame1ContainedComponent;