summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <sgothel@jausoft.com>2012-01-22 22:24:51 +0100
committerSven Gothel <sgothel@jausoft.com>2012-01-22 22:24:51 +0100
commit0cbe4fe0ee721fd0cc0eb2b1fdf9ca79b9a21644 (patch)
tree2ab87ac19e6b66d9908ec66b24427f89609178bc
parent859f5a5a1ffa5862bea678c2afe1c016058d7f09 (diff)
Gears: Remove initSingleton()
-rw-r--r--java-run-swing.sh3
-rw-r--r--src/demos/gears/Gears.java3
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;