diff options
Diffstat (limited to 'src/demos/gamma')
-rwxr-xr-x | src/demos/gamma/TestGamma.java | 6 |
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(); } |