diff options
author | Sven Gothel <[email protected]> | 2011-05-01 07:38:16 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-05-01 07:38:16 +0200 |
commit | eceed6e10c7d6cb19e8ad3c1bf5ea20450d6fae1 (patch) | |
tree | efc5e5aeb8c5f79f43a1453b983c6a3b0f54df40 | |
parent | dab2ffd696b5f9ccb192834c3e50132fad96a30a (diff) |
Sync w/ gluegen change 8f8aa3f73e3c9804c4a86f5d4fdac257d50d831a and c5a56e10677e9dc0a048c2be3de16701aac9ad17
-rw-r--r-- | src/com/jogamp/opencl/CLCommandQueue.java | 2 | ||||
-rw-r--r-- | src/com/jogamp/opencl/CLEventList.java | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/com/jogamp/opencl/CLCommandQueue.java b/src/com/jogamp/opencl/CLCommandQueue.java index 6ceed82..ae279fa 100644 --- a/src/com/jogamp/opencl/CLCommandQueue.java +++ b/src/com/jogamp/opencl/CLCommandQueue.java @@ -1350,7 +1350,7 @@ public class CLCommandQueue extends CLObject implements CLResource { */ public CLCommandQueue putWaitForEvent(CLEventList list, int index, boolean blockingWait) { - PointerBuffer ids = PointerBuffer.wrap(list.IDs.getBuffer().duplicate()).position(index); + PointerBuffer ids = list.IDs.duplicate().position(index); int ret = blockingWait ? cl.clWaitForEvents(1, ids) : cl.clEnqueueWaitForEvents(ID, 1, ids); diff --git a/src/com/jogamp/opencl/CLEventList.java b/src/com/jogamp/opencl/CLEventList.java index e2294b4..1e88222 100644 --- a/src/com/jogamp/opencl/CLEventList.java +++ b/src/com/jogamp/opencl/CLEventList.java @@ -64,13 +64,13 @@ public final class CLEventList implements CLResource, AutoCloseable, Iterable<CL public CLEventList(CachedBufferFactory factory, int capacity) { this.events = new CLEvent[capacity]; this.IDs = initIDBuffer(factory, capacity); - this.IDsView = PointerBuffer.wrap(IDs.getBuffer().duplicate()); + this.IDsView = IDs.duplicate(); } public CLEventList(CachedBufferFactory factory, CLEvent... events) { this.events = events; this.IDs = initIDBuffer(factory, events.length); - this.IDsView = PointerBuffer.wrap(IDs.getBuffer().duplicate()); + this.IDsView = IDs.duplicate(); for (CLEvent event : events) { if(event == null) { @@ -86,7 +86,7 @@ public final class CLEventList implements CLResource, AutoCloseable, Iterable<CL if(factory == null) { return PointerBuffer.allocateDirect(size); }else{ - return PointerBuffer.wrap(factory.newDirectByteBuffer(size*PointerBuffer.elementSize())); + return PointerBuffer.wrap(factory.newDirectByteBuffer(size*PointerBuffer.ELEMENT_SIZE)); } } |