aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-09-18 05:50:39 +0200
committerMichael Bien <[email protected]>2010-09-18 05:50:39 +0200
commit08ecaceb0798f7f2917a3d916aa155e2682e5dbf (patch)
tree6426f1bc8cd28f07deccd463a5c746db0df2a96e
parent9870937703113993072e0bfa1fc9dce0a138278d (diff)
CLGLContext.create() makes GLContext current (restored old behavior).
CLGLTest: make gl context current right after init (jogl bug workaround)
-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);