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/redbook | |
parent | 7bf502292901259eef302ef23b5c558b80f6b3f8 (diff) |
Adding GLProfile.initSingleton() call, ensuring [multithreading] intitialization can be done in time
Diffstat (limited to 'src/redbook')
-rw-r--r-- | src/redbook/src/glredbook10/alpha.java | 5 | ||||
-rw-r--r-- | src/redbook/src/glredbook1314/combiner.java | 3 | ||||
-rw-r--r-- | src/redbook/src/glredbook1314/fogcoord.java | 5 | ||||
-rw-r--r-- | src/redbook/src/glredbook1314/multisamp.java | 3 | ||||
-rw-r--r-- | src/redbook/src/glredbook1314/shadowmap.java | 3 |
5 files changed, 17 insertions, 2 deletions
diff --git a/src/redbook/src/glredbook10/alpha.java b/src/redbook/src/glredbook10/alpha.java index a207bdc..0c1a653 100644 --- a/src/redbook/src/glredbook10/alpha.java +++ b/src/redbook/src/glredbook10/alpha.java @@ -19,6 +19,9 @@ import javax.media.opengl.glu.GLU; public class alpha//
extends GLSkeleton<GLCanvas>
implements GLEventListener, KeyListener {
+ static {
+ GLProfile.initSingleton();
+ }
@Override
protected GLCanvas createDrawable() {
@@ -152,4 +155,4 @@ public class alpha// * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
*
* OpenGL(TM) is a trademark of Silicon Graphics, Inc.
- */
\ No newline at end of file + */
diff --git a/src/redbook/src/glredbook1314/combiner.java b/src/redbook/src/glredbook1314/combiner.java index bf34c23..6c50d3e 100644 --- a/src/redbook/src/glredbook1314/combiner.java +++ b/src/redbook/src/glredbook1314/combiner.java @@ -30,6 +30,9 @@ import javax.media.opengl.glu.GLU; public class combiner//
extends GLSkeleton<GLJPanel>
implements GLEventListener, KeyListener {
+ static {
+ GLProfile.initSingleton();
+ }
private GLU glu;
private static final int imageWidth = 8;
private static final int imageHeight = 8;
diff --git a/src/redbook/src/glredbook1314/fogcoord.java b/src/redbook/src/glredbook1314/fogcoord.java index b40dca9..4375d80 100644 --- a/src/redbook/src/glredbook1314/fogcoord.java +++ b/src/redbook/src/glredbook1314/fogcoord.java @@ -29,6 +29,9 @@ public class fogcoord// extends GLSkeleton<GLCanvas>
implements GLEventListener, KeyListener {
+ static {
+ GLProfile.initSingleton();
+ }
private GLU glu;
private float f1, f2, f3;
private KeyEvent key;
@@ -187,4 +190,4 @@ public class fogcoord// public void dispose(GLAutoDrawable arg0) {
}
-}//
\ No newline at end of file +}//
diff --git a/src/redbook/src/glredbook1314/multisamp.java b/src/redbook/src/glredbook1314/multisamp.java index 16eb43c..4aa4c3f 100644 --- a/src/redbook/src/glredbook1314/multisamp.java +++ b/src/redbook/src/glredbook1314/multisamp.java @@ -23,6 +23,9 @@ import javax.media.opengl.glu.GLU; public class multisamp //
extends GLSkeleton<GLCanvas>
implements GLEventListener, KeyListener {
+ static {
+ GLProfile.initSingleton();
+ }
private GLU glu;
private boolean bgtoggle = true;
diff --git a/src/redbook/src/glredbook1314/shadowmap.java b/src/redbook/src/glredbook1314/shadowmap.java index f20b9d2..952145c 100644 --- a/src/redbook/src/glredbook1314/shadowmap.java +++ b/src/redbook/src/glredbook1314/shadowmap.java @@ -20,6 +20,9 @@ import javax.media.opengl.glu.GLU; public class shadowmap //
extends GLSkeleton<GLCanvas>
implements GLEventListener, KeyListener {
+ static {
+ GLProfile.initSingleton();
+ }
private GLU glu;
private GLUT glut;
private FPSAnimator animator;
|