aboutsummaryrefslogtreecommitdiffstats
path: root/test/com/jogamp/opencl/gl/CLGLTest.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-11-18 16:03:50 +0100
committerMichael Bien <[email protected]>2010-11-18 16:03:50 +0100
commit952425dbb135152912057930cd83008b9b09da08 (patch)
treed1b5e0a039289e448fc3e7174a04f6f2516f3366 /test/com/jogamp/opencl/gl/CLGLTest.java
parent0e7aa3b2d14153e024cd3462ca7179d579a3c99a (diff)
changes due to mofifications in jogl + propper jogl release() + destroy(true) -> destroy().
Diffstat (limited to 'test/com/jogamp/opencl/gl/CLGLTest.java')
-rw-r--r--test/com/jogamp/opencl/gl/CLGLTest.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/com/jogamp/opencl/gl/CLGLTest.java b/test/com/jogamp/opencl/gl/CLGLTest.java
index f8cd28d5..a647c19f 100644
--- a/test/com/jogamp/opencl/gl/CLGLTest.java
+++ b/test/com/jogamp/opencl/gl/CLGLTest.java
@@ -35,6 +35,7 @@ public class CLGLTest {
private static GLContext glcontext;
private static GLWindow glWindow;
+ private static Window window;
// @BeforeClass
public static void init() {
@@ -51,13 +52,13 @@ public class CLGLTest {
Screen screen = NewtFactory.createScreen(display, 0); // screen 0
assertNotNull(screen);
- Window window = NewtFactory.createWindow(screen, new GLCapabilities(GLProfile.getDefault()));
+ window = NewtFactory.createWindow(screen, new GLCapabilities(GLProfile.getDefault()));
assertNotNull(window);
window.setSize(640, 480);
glWindow = GLWindow.create(window);
-
+
assertNotNull(glWindow);
glWindow.setVisible(true);
@@ -69,9 +70,12 @@ public class CLGLTest {
// @AfterClass
public static void release() {
- if(glcontext!= null) {
+ if(glcontext != null) {
+ glcontext.destroy();
glcontext = null;
}
+ glWindow.destroy();
+// window.destroy();
}
@Test
@@ -114,9 +118,6 @@ public class CLGLTest {
context.release();
}
- glcontext.destroy();
-
-
release();
}