From 348c43a12199e71017767930b0b42d939db47312 Mon Sep 17 00:00:00 2001 From: Sven Gothel <sgothel@jausoft.com> Date: Thu, 10 Jun 2010 06:14:44 +0200 Subject: Adding GLProfile.initSingleton() call, ensuring [multithreading] intitialization can be done in time --- src/demos/fullscreen/GearsFullscreen.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/demos/fullscreen/GearsFullscreen.java') 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; -- cgit v1.2.3