From 490a6ebf64d767f5395554da78dda96ebb59b0fc Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 31 Aug 2011 02:28:18 +0200 Subject: Unit Tests: Remove redundant GLProfile.initSingleton(boolean) calls --- .../opengl/test/junit/jogl/acore/TestGLExtensionQueryOffscreen.java | 4 ---- .../opengl/test/junit/jogl/demos/es2/ElektronenMultiplizierer.java | 5 ----- .../com/jogamp/opengl/test/junit/jogl/glsl/TestGLSLSimple01NEWT.java | 4 ---- 3 files changed, 13 deletions(-) (limited to 'src') diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLExtensionQueryOffscreen.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLExtensionQueryOffscreen.java index 1400a1083..5af526364 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLExtensionQueryOffscreen.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLExtensionQueryOffscreen.java @@ -46,10 +46,6 @@ import org.junit.Test; public class TestGLExtensionQueryOffscreen { - static { - // redundant, since implicit (false): GLProfile.initSingleton(false); - } - public static void main(String[] args) { TestGLExtensionQueryOffscreen instance = new TestGLExtensionQueryOffscreen(); instance.testJogl2ExtensionCheck1(); diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/ElektronenMultiplizierer.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/ElektronenMultiplizierer.java index b456eec66..2de0fb81f 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/ElektronenMultiplizierer.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/ElektronenMultiplizierer.java @@ -470,11 +470,6 @@ public class ElektronenMultiplizierer implements GLEventListener { //BEGIN --- main entry point --- - static { - // Since we only use NEWT, allow X11 to be multithreaded w/o locking - GLProfile.initSingleton(true); - } - public static void main(String args[]) throws Exception { String tRoutineClassName = null; boolean tMultiSampling = false; diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/glsl/TestGLSLSimple01NEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/glsl/TestGLSLSimple01NEWT.java index 55cc1fb76..b683cb2e7 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/glsl/TestGLSLSimple01NEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/glsl/TestGLSLSimple01NEWT.java @@ -52,10 +52,6 @@ import javax.media.opengl.GL2ES2; import org.junit.AfterClass; public class TestGLSLSimple01NEWT extends UITestCase { - static { - GLProfile.initSingleton(true); - } - static long durationPerTest = 100; // ms @BeforeClass -- cgit v1.2.3