From 0cbe4fe0ee721fd0cc0eb2b1fdf9ca79b9a21644 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 22 Jan 2012 22:24:51 +0100 Subject: Gears: Remove initSingleton() --- java-run-swing.sh | 3 ++- src/demos/gears/Gears.java | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/java-run-swing.sh b/java-run-swing.sh index 13995bd..7cbb97a 100644 --- a/java-run-swing.sh +++ b/java-run-swing.sh @@ -3,7 +3,8 @@ CPOK=0 echo $CLASSPATH | grep jogl && CPOK=1 -SWING_PROPS="-Dsun.java2d.noddraw=true -Dsun.java2d.opengl=false" +#SWING_PROPS="-Dsun.java2d.noddraw=true -Dsun.java2d.opengl=false" +SWING_PROPS="-Dsun.java2d.noddraw=true -Dsun.java2d.opengl=true" SWING_PROPS_DBG="-Djnlp.jogl.debug.GLJPanel=true" if [ $CPOK -eq 0 ] ; then diff --git a/src/demos/gears/Gears.java b/src/demos/gears/Gears.java index d312a87..4b1b7f9 100644 --- a/src/demos/gears/Gears.java +++ b/src/demos/gears/Gears.java @@ -26,9 +26,6 @@ import com.jogamp.newt.event.awt.AWTMouseAdapter; */ public class Gears implements GLEventListener { - static { - GLProfile.initSingleton(false); - } private float view_rotx = 20.0f, view_roty = 30.0f, view_rotz = 0.0f; private int gear1=0, gear2=0, gear3=0; private float angle = 0.0f; -- cgit v1.2.3