diff options
Diffstat (limited to 'src/demos/swt/Snippet209.java')
-rw-r--r-- | src/demos/swt/Snippet209.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/demos/swt/Snippet209.java b/src/demos/swt/Snippet209.java index f75d59d..1deb1c4 100644 --- a/src/demos/swt/Snippet209.java +++ b/src/demos/swt/Snippet209.java @@ -34,6 +34,9 @@ import javax.media.opengl.GLDrawableFactory; import javax.media.opengl.glu.GLU; public class Snippet209 { + static { + GLProfile.initSingleton(); + } static void drawTorus(GL2 gl, float r, float R, int nsides, int rings) { float ringDelta = 2.0f * (float) Math.PI / rings; float sideDelta = 2.0f * (float) Math.PI / nsides; |