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/cubefbo/Main.java | |
parent | 7bf502292901259eef302ef23b5c558b80f6b3f8 (diff) |
Adding GLProfile.initSingleton() call, ensuring [multithreading] intitialization can be done in time
Diffstat (limited to 'src/demos/cubefbo/Main.java')
-rwxr-xr-x | src/demos/cubefbo/Main.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/demos/cubefbo/Main.java b/src/demos/cubefbo/Main.java index 2d8a36b..054aea4 100755 --- a/src/demos/cubefbo/Main.java +++ b/src/demos/cubefbo/Main.java @@ -36,6 +36,7 @@ package demos.cubefbo; import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; +import javax.media.opengl.GLProfile; import javax.media.opengl.GLCapabilities; import javax.media.opengl.awt.GLCanvas; import com.jogamp.opengl.util.Animator; @@ -44,6 +45,10 @@ import com.jogamp.opengl.util.FPSAnimator; public class Main { + static { + GLProfile.initSingleton(); + } + public static void main(String[] args) { GLCapabilities caps = new GLCapabilities(null); |