diff options
author | Michael Bien <[email protected]> | 2011-04-26 03:59:23 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-04-26 03:59:23 +0200 |
commit | 5356c2e6effcdec3c3a6e4f492ea8742bed668eb (patch) | |
tree | 5360516f7ca873623c4f9afc7258b4de0aca8086 /src/com/jogamp/opencl/demos/joglinterop | |
parent | bb3cc47fefe772fdb9977daf34d7f7289183ad7d (diff) |
compatibility update to latest jocl.
Diffstat (limited to 'src/com/jogamp/opencl/demos/joglinterop')
-rw-r--r-- | src/com/jogamp/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java b/src/com/jogamp/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java index fbd3775..2e630c6 100644 --- a/src/com/jogamp/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java +++ b/src/com/jogamp/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java @@ -182,6 +182,7 @@ public class GLCLInteroperabilityDemo implements GLEventListener { commandQueue = clContext.getMaxFlopsDevice().createCommandQueue(); clBuffer = clContext.createFromGLBuffer(glObjects[VERTICES], CLGLBuffer.Mem.WRITE_ONLY); + System.out.println("clsize: "+clBuffer.getCLSize()); System.out.println("cl buffer type: " + clBuffer.getGLObjectType()); System.out.println("shared with gl buffer: " + clBuffer.getGLObjectID()); @@ -230,9 +231,9 @@ public class GLCLInteroperabilityDemo implements GLEventListener { kernel.setArg(2, step += 0.05f); - commandQueue.putAcquireGLObject(clBuffer.ID) + commandQueue.putAcquireGLObject(clBuffer) .put2DRangeKernel(kernel, 0, 0, MESH_SIZE, MESH_SIZE, 0, 0) - .putReleaseGLObject(clBuffer.ID) + .putReleaseGLObject(clBuffer) .finish(); } |