diff options
author | Sven Gothel <[email protected]> | 2010-06-10 06:14:44 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-06-10 06:14:44 +0200 |
commit | 348c43a12199e71017767930b0b42d939db47312 (patch) | |
tree | 502a113716308414e1345413dd35072a4b66459f /src/demos/printext/PrintExt.java | |
parent | 7bf502292901259eef302ef23b5c558b80f6b3f8 (diff) |
Adding GLProfile.initSingleton() call, ensuring [multithreading] intitialization can be done in time
Diffstat (limited to 'src/demos/printext/PrintExt.java')
-rwxr-xr-x | src/demos/printext/PrintExt.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/demos/printext/PrintExt.java b/src/demos/printext/PrintExt.java index d2abe17..5ab5b42 100755 --- a/src/demos/printext/PrintExt.java +++ b/src/demos/printext/PrintExt.java @@ -6,6 +6,7 @@ package demos.printext; import java.awt.Frame; +import javax.media.opengl.GLProfile; import javax.media.opengl.GL; import javax.media.opengl.GLAutoDrawable; import javax.media.opengl.GLEventListener; @@ -14,6 +15,9 @@ import javax.media.opengl.awt.GLCanvas; public class PrintExt { + static { + GLProfile.initSingleton(); + } public static void main(String[] args) { Frame frame = new Frame(); GLCanvas canvas = new GLCanvas(); |