diff options
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); } |