diff options
author | Michael Bien <[email protected]> | 2011-04-19 17:54:14 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-04-19 17:54:14 +0200 |
commit | 623423c7e09a240c6220566a24ad9ac65527da94 (patch) | |
tree | 0b55cb25e1f744e63d1672ddc17246738e62dce7 | |
parent | 03ce3ff819e342b95552c1438ea1269fd30e7176 (diff) |
CLEventList uses now buffer.duplicate() to create a view of the buffer ids instead of using the original buffer directly.
-rw-r--r-- | src/com/jogamp/opencl/CLEventList.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/CLEventList.java b/src/com/jogamp/opencl/CLEventList.java index 23ef3963..e2294b45 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()); + this.IDsView = PointerBuffer.wrap(IDs.getBuffer().duplicate()); } public CLEventList(CachedBufferFactory factory, CLEvent... events) { this.events = events; this.IDs = initIDBuffer(factory, events.length); - this.IDsView = PointerBuffer.wrap(IDs.getBuffer()); + this.IDsView = PointerBuffer.wrap(IDs.getBuffer().duplicate()); for (CLEvent event : events) { if(event == null) { |