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/demos/j2d/CustomText.java | |
parent | 7bf502292901259eef302ef23b5c558b80f6b3f8 (diff) |
Adding GLProfile.initSingleton() call, ensuring [multithreading] intitialization can be done in time
Diffstat (limited to 'src/demos/j2d/CustomText.java')
-rwxr-xr-x | src/demos/j2d/CustomText.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/demos/j2d/CustomText.java b/src/demos/j2d/CustomText.java index b5a4f57..86a423f 100755 --- a/src/demos/j2d/CustomText.java +++ b/src/demos/j2d/CustomText.java @@ -69,6 +69,7 @@ import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Random; +import javax.media.opengl.GLProfile; import javax.media.opengl.GL; import javax.media.opengl.GL2ES1; import javax.media.opengl.GL2; @@ -85,6 +86,9 @@ import javax.swing.JPanel; to do text filled with a linear Java 2D gradient. */ public class CustomText extends Demo { + static { + GLProfile.initSingleton(); + } public static void main(String[] args) { JFrame frame = new JFrame("Custom Text"); frame.getContentPane().setLayout(new BorderLayout()); |