diff options
author | Michael Bien <[email protected]> | 2011-04-20 01:53:09 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-04-20 01:53:09 +0200 |
commit | 8d4602f9058d44e94ddafc9618d32411ae37bb2c (patch) | |
tree | 8460afa7674e18f3a437c063a68bc5003f7ea124 /src/com/jogamp | |
parent | 6e35af2622d5f4627dfb564058d7cf313afffe0b (diff) |
duplicate buffer before changing its position.
Diffstat (limited to 'src/com/jogamp')
-rw-r--r-- | src/com/jogamp/opencl/CLCommandQueue.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLCommandQueue.java b/src/com/jogamp/opencl/CLCommandQueue.java index dc954a4a..67b07171 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()).position(index); + PointerBuffer ids = PointerBuffer.wrap(list.IDs.getBuffer().duplicate()).position(index); int ret = blockingWait ? cl.clWaitForEvents(1, ids) : cl.clEnqueueWaitForEvents(ID, 1, ids); |