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 /src/com/jogamp/opencl/CLEventList.java | |
parent | dab2ffd696b5f9ccb192834c3e50132fad96a30a (diff) |
Sync w/ gluegen change 8f8aa3f73e3c9804c4a86f5d4fdac257d50d831a and c5a56e10677e9dc0a048c2be3de16701aac9ad17
Diffstat (limited to 'src/com/jogamp/opencl/CLEventList.java')
-rw-r--r-- | src/com/jogamp/opencl/CLEventList.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/jogamp/opencl/CLEventList.java b/src/com/jogamp/opencl/CLEventList.java index e2294b45..1e882221 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)); } } |