aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/jogamp/opencl/gl/CLGLContext.java2
-rw-r--r--test/com/jogamp/opencl/gl/CLGLTest.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/gl/CLGLContext.java b/src/com/jogamp/opencl/gl/CLGLContext.java
index 7ce4c766..74da453d 100644
--- a/src/com/jogamp/opencl/gl/CLGLContext.java
+++ b/src/com/jogamp/opencl/gl/CLGLContext.java
@@ -120,7 +120,7 @@ public final class CLGLContext extends CLContext {
}
// context must be current
-// glContext.makeCurrent();
+ glContext.makeCurrent();
GLContextImpl ctxImpl = (GLContextImpl)glContext;
glID[0] = glContext.getHandle();
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);