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/texture/TestSubImage.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/demos/texture/TestSubImage.java') diff --git a/src/demos/texture/TestSubImage.java b/src/demos/texture/TestSubImage.java index 498428c..8f04e4a 100755 --- a/src/demos/texture/TestSubImage.java +++ b/src/demos/texture/TestSubImage.java @@ -60,6 +60,7 @@ import java.awt.image.BufferedImage; import java.util.ArrayList; import java.util.Iterator; import java.util.List; +import javax.media.opengl.GLProfile; import javax.media.opengl.GL; import javax.media.opengl.GL2ES1; import javax.media.opengl.GL2; @@ -84,6 +85,9 @@ import javax.swing.KeyStroke; Texture.updateSubImage(). */ public class TestSubImage { + static { + GLProfile.initSingleton(); + } private boolean haveForcedImageType; private int forcedImageType; private List imageTypeMenuItems = new ArrayList(); -- cgit v1.2.3