diff options
author | Michael Bien <[email protected]> | 2010-09-18 05:50:39 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-09-18 05:50:39 +0200 |
commit | 08ecaceb0798f7f2917a3d916aa155e2682e5dbf (patch) | |
tree | 6426f1bc8cd28f07deccd463a5c746db0df2a96e /test/com/jogamp | |
parent | 9870937703113993072e0bfa1fc9dce0a138278d (diff) |
CLGLContext.create() makes GLContext current (restored old behavior).
CLGLTest: make gl context current right after init (jogl bug workaround)
Diffstat (limited to 'test/com/jogamp')
-rw-r--r-- | test/com/jogamp/opencl/gl/CLGLTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/com/jogamp/opencl/gl/CLGLTest.java b/test/com/jogamp/opencl/gl/CLGLTest.java index 1fa582b8..e2864822 100644 --- a/test/com/jogamp/opencl/gl/CLGLTest.java +++ b/test/com/jogamp/opencl/gl/CLGLTest.java @@ -53,6 +53,7 @@ public class CLGLTest { glWindow.setVisible(true); glcontext = glWindow.getContext(); + glcontext.makeCurrent(); out.println("useing glcontext:"); out.println(glcontext); } @@ -89,7 +90,7 @@ public class CLGLTest { assumeNotNull(glcontext); CLContext context = CLGLContext.create(glcontext, device); assertNotNull(context); -// assertTrue(glcontext.isCurrent()); + assertTrue(glcontext.isCurrent()); try{ out.println(context); |