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/fullscreen/GearsFullscreen.java | |
parent | 7bf502292901259eef302ef23b5c558b80f6b3f8 (diff) |
Adding GLProfile.initSingleton() call, ensuring [multithreading] intitialization can be done in time
Diffstat (limited to 'src/demos/fullscreen/GearsFullscreen.java')
-rwxr-xr-x | src/demos/fullscreen/GearsFullscreen.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/demos/fullscreen/GearsFullscreen.java b/src/demos/fullscreen/GearsFullscreen.java index 0dac67f..2fa9937 100755 --- a/src/demos/fullscreen/GearsFullscreen.java +++ b/src/demos/fullscreen/GearsFullscreen.java @@ -5,6 +5,7 @@ import java.awt.event.*; import demos.gears.Gears; import demos.util.*; +import javax.media.opengl.GLProfile; import javax.media.opengl.awt.GLCanvas; import com.jogamp.opengl.util.Animator; @@ -21,6 +22,10 @@ import com.jogamp.opengl.util.Animator; */ public class GearsFullscreen { + static { + GLProfile.initSingleton(); + } + private GraphicsDevice dev; private DisplayMode origMode; private boolean fullScreen; |