summaryrefslogtreecommitdiffstats
path: root/src/demos/gamma/TestGamma.java
diff options
context:
space:
mode:
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();
}