diff options
author | Michael Bien <[email protected]> | 2010-03-30 18:45:01 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-03-30 18:45:01 +0200 |
commit | 11734980ca3a3457ed67fd054fa3041ba9b8040e (patch) | |
tree | 7fe5c38cfd47f2718fb681bd0fd2fb22a7ae212a /src/com/mbien/opencl/CLCommandQueue.java | |
parent | 9ec0937d729faade497a3d2a394f76992dcdaa45 (diff) |
fixed newly introduced bug in CLCommandQueue, cleanup in CLContext.
Diffstat (limited to 'src/com/mbien/opencl/CLCommandQueue.java')
-rw-r--r-- | src/com/mbien/opencl/CLCommandQueue.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/mbien/opencl/CLCommandQueue.java b/src/com/mbien/opencl/CLCommandQueue.java index b1f43c50..66b0d392 100644 --- a/src/com/mbien/opencl/CLCommandQueue.java +++ b/src/com/mbien/opencl/CLCommandQueue.java @@ -9,6 +9,7 @@ import java.util.ArrayList; import java.util.EnumSet; import java.util.List; +import static com.jogamp.gluegen.runtime.Buffers.*; import static com.mbien.opencl.CLException.*; import static com.mbien.opencl.CL.*; import static com.mbien.opencl.util.CLUtil.*; @@ -46,7 +47,7 @@ public class CLCommandQueue extends CLObject implements CLResource { this.ibB = Int64Buffer.allocateDirect(3); this.ibC = Int64Buffer.allocateDirect(3); - this.pbA = PointerBuffer.wrap(ibA.getBuffer()); + this.pbA = PointerBuffer.allocateDirect(1); } |