From 1ff81eb806d6df78994a808217eb2c5f6b4ef8da Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 14 Oct 2010 21:34:27 +0200 Subject: Fix/Syn with JOGL 774138544e1eec3330309ad682fa05154a07ab8d ; Notably add: Applet's with native NEWT support, ie jogl-newt-applet-runner-gears.html --- src/demos/texture/TestSubImage.java | 10 +++++++--- src/demos/texture/TestTexture.java | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) (limited to 'src/demos/texture') diff --git a/src/demos/texture/TestSubImage.java b/src/demos/texture/TestSubImage.java index 8f04e4a..377a910 100755 --- a/src/demos/texture/TestSubImage.java +++ b/src/demos/texture/TestSubImage.java @@ -85,9 +85,6 @@ import javax.swing.KeyStroke; Texture.updateSubImage(). */ public class TestSubImage { - static { - GLProfile.initSingleton(); - } private boolean haveForcedImageType; private int forcedImageType; private List imageTypeMenuItems = new ArrayList(); @@ -328,6 +325,13 @@ public class TestSubImage { } public static void main(String[] args) { + // set argument 'NotFirstUIActionOnProcess' in the JNLP's application-desc tag for example + // + // NotFirstUIActionOnProcess + // + boolean firstUIActionOnProcess = 0==args.length || !args[0].equals("NotFirstUIActionOnProcess") ; + GLProfile.initSingleton(firstUIActionOnProcess); + new TestSubImage().run(); } } diff --git a/src/demos/texture/TestTexture.java b/src/demos/texture/TestTexture.java index 7524cd6..057e957 100755 --- a/src/demos/texture/TestTexture.java +++ b/src/demos/texture/TestTexture.java @@ -73,10 +73,14 @@ 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) { + // set argument 'NotFirstUIActionOnProcess' in the JNLP's application-desc tag for example + // + // NotFirstUIActionOnProcess + // + boolean firstUIActionOnProcess = 0==args.length || !args[0].equals("NotFirstUIActionOnProcess") ; + GLProfile.initSingleton(firstUIActionOnProcess); + new TestTexture().run(args); } -- cgit v1.2.3