summaryrefslogtreecommitdiffstats
path: root/src/demos/gamma/TestGamma.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-10-14 21:34:27 +0200
committerSven Gothel <[email protected]>2010-10-14 21:34:27 +0200
commit1ff81eb806d6df78994a808217eb2c5f6b4ef8da (patch)
tree7ae11fd92f63019c6c54862c66eb2656bcc2ef97 /src/demos/gamma/TestGamma.java
parent0d1ea8ae8eb940b1b29f4f80c232a1d456300362 (diff)
Fix/Syn with JOGL 774138544e1eec3330309ad682fa05154a07ab8d ; Notably add: Applet's with native NEWT support, ie jogl-newt-applet-runner-gears.html
Diffstat (limited to 'src/demos/gamma/TestGamma.java')
-rwxr-xr-xsrc/demos/gamma/TestGamma.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/demos/gamma/TestGamma.java b/src/demos/gamma/TestGamma.java
index fc6a34f..e8e46b5 100755
--- a/src/demos/gamma/TestGamma.java
+++ b/src/demos/gamma/TestGamma.java
@@ -51,10 +51,6 @@ import com.jogamp.opengl.util.Gamma;
public class TestGamma implements GLEventListener {
- static {
- GLProfile.initSingleton();
- }
-
private static void usage() {
System.out.println("Usage: java TestGamma [gamma value] [brightness value] [contrast value]");
System.exit(1);
@@ -84,6 +80,8 @@ public class TestGamma implements GLEventListener {
}
public static void main(String[] args) {
+ GLProfile.initSingleton(true);
+
if (args.length != 3) {
usage();
}