summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-08-04 21:20:14 +0200
committerMichael Bien <[email protected]>2011-08-04 21:20:14 +0200
commitbdf1f6dbac967df81879d8730db1132fe184735a (patch)
treebc45f3dcb30b2a011f569060213148af528f4d78 /src
parent0ee9b79f5941c5d418b8daa82783ed67fc3efeb4 (diff)
fixed another concurrent modification bug after testing on AMD, NV and Intel.
Diffstat (limited to 'src')
-rw-r--r--src/com/jogamp/opencl/CLContext.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLContext.java b/src/com/jogamp/opencl/CLContext.java
index 928adabb..235bb3a8 100644
--- a/src/com/jogamp/opencl/CLContext.java
+++ b/src/com/jogamp/opencl/CLContext.java
@@ -548,7 +548,7 @@ public class CLContext extends CLObjectResource {
release(memoryObjects);
release(samplers);
- for (List<CLCommandQueue> queues : queuesMap.values()) {
+ for (List<CLCommandQueue> queues : new ArrayList<List<CLCommandQueue>>(queuesMap.values())) {
release(queues);
}