diff options
author | Sven Gothel <[email protected]> | 2010-06-10 06:14:44 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-06-10 06:14:44 +0200 |
commit | 348c43a12199e71017767930b0b42d939db47312 (patch) | |
tree | 502a113716308414e1345413dd35072a4b66459f /src/demos/texture/TestTexture.java | |
parent | 7bf502292901259eef302ef23b5c558b80f6b3f8 (diff) |
Adding GLProfile.initSingleton() call, ensuring [multithreading] intitialization can be done in time
Diffstat (limited to 'src/demos/texture/TestTexture.java')
-rwxr-xr-x | src/demos/texture/TestTexture.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/demos/texture/TestTexture.java b/src/demos/texture/TestTexture.java index 6d39bbc..7524cd6 100755 --- a/src/demos/texture/TestTexture.java +++ b/src/demos/texture/TestTexture.java @@ -50,6 +50,7 @@ import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; import java.io.PrintStream; +import javax.media.opengl.GLProfile; import javax.media.opengl.DebugGL2; import javax.media.opengl.GL; import javax.media.opengl.GL2ES1; @@ -72,6 +73,9 @@ import javax.swing.KeyStroke; /** Demonstrates simple use of the TextureIO texture loader. */ public class TestTexture implements GLEventListener { + static { + GLProfile.initSingleton(); + } public static void main(String[] args) { new TestTexture().run(args); } |