summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;