summaryrefslogtreecommitdiffstats
path: root/src/demos/texture/TestSubImage.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/texture/TestSubImage.java')
-rwxr-xr-xsrc/demos/texture/TestSubImage.java4
1 files changed, 4 insertions, 0 deletions
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();