From 08ecaceb0798f7f2917a3d916aa155e2682e5dbf Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sat, 18 Sep 2010 05:50:39 +0200 Subject: CLGLContext.create() makes GLContext current (restored old behavior). CLGLTest: make gl context current right after init (jogl bug workaround) --- test/com/jogamp/opencl/gl/CLGLTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/com/jogamp/opencl') 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); -- cgit v1.2.3