summaryrefslogtreecommitdiffstats
path: root/src/demos/fullscreen/GearsFullscreen2.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/fullscreen/GearsFullscreen2.java')
-rwxr-xr-xsrc/demos/fullscreen/GearsFullscreen2.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/demos/fullscreen/GearsFullscreen2.java b/src/demos/fullscreen/GearsFullscreen2.java
index 38911a4..1984acc 100755
--- a/src/demos/fullscreen/GearsFullscreen2.java
+++ b/src/demos/fullscreen/GearsFullscreen2.java
@@ -10,6 +10,7 @@ import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
+import javax.media.opengl.GLProfile;
import javax.media.opengl.awt.GLCanvas;
import com.jogamp.opengl.util.Animator;
import javax.swing.JButton;
@@ -30,6 +31,10 @@ import javax.swing.ToolTipManager;
*/
public class GearsFullscreen2 {
+ static {
+ GLProfile.initSingleton();
+ }
+
private GraphicsDevice dev;
private DisplayMode origMode;
private boolean fullScreen;