diff options
Diffstat (limited to 'test/com/jogamp/opencl')
-rw-r--r-- | test/com/jogamp/opencl/CLCommandQueueTest.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/com/jogamp/opencl/CLCommandQueueTest.java b/test/com/jogamp/opencl/CLCommandQueueTest.java index 1d47ced6..c8c028af 100644 --- a/test/com/jogamp/opencl/CLCommandQueueTest.java +++ b/test/com/jogamp/opencl/CLCommandQueueTest.java @@ -141,11 +141,15 @@ public class CLCommandQueueTest { queue.put1DRangeKernel(vectorAddKernel, 0, elements, groupSize, events); assertEquals(2, events.size()); - queue.putWaitForEvent(events, 0, false) + queue.putWaitForEvent(events, 0, true) .putWaitForEvent(events, 1, true); - queue.putReadBuffer(clBufferC, false) - .putReadBuffer(clBufferD, true); + events.release(); + + queue.putReadBuffer(clBufferC, false, events) + .putReadBuffer(clBufferD, false, events); + + queue.putWaitForEvents(events, true); events.release(); |