From 348c43a12199e71017767930b0b42d939db47312 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 10 Jun 2010 06:14:44 +0200 Subject: Adding GLProfile.initSingleton() call, ensuring [multithreading] intitialization can be done in time --- src/demos/gamma/TestGamma.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/demos/gamma/TestGamma.java') 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); -- cgit v1.2.3