summaryrefslogtreecommitdiffstats
path: root/src/demos/gamma/TestGamma.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-06-10 06:14:44 +0200
committerSven Gothel <[email protected]>2010-06-10 06:14:44 +0200
commit348c43a12199e71017767930b0b42d939db47312 (patch)
tree502a113716308414e1345413dd35072a4b66459f /src/demos/gamma/TestGamma.java
parent7bf502292901259eef302ef23b5c558b80f6b3f8 (diff)
Adding GLProfile.initSingleton() call, ensuring [multithreading] intitialization can be done in time
Diffstat (limited to 'src/demos/gamma/TestGamma.java')
-rwxr-xr-xsrc/demos/gamma/TestGamma.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/demos/gamma/TestGamma.java b/src/demos/gamma/TestGamma.java
index 4dff454..fc6a34f 100755
--- a/src/demos/gamma/TestGamma.java
+++ b/src/demos/gamma/TestGamma.java
@@ -51,6 +51,10 @@ 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);