From 7f2db980b303fa75f3830679ce65fe4ae41c30dc Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Tue, 20 Oct 2009 00:53:50 +0200 Subject: added CLCommandQueue to CLContext's resource management code, minor fixes... --- src/com/mbien/opencl/CLDevice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/mbien/opencl/CLDevice.java') diff --git a/src/com/mbien/opencl/CLDevice.java b/src/com/mbien/opencl/CLDevice.java index c69afef5..87616516 100644 --- a/src/com/mbien/opencl/CLDevice.java +++ b/src/com/mbien/opencl/CLDevice.java @@ -86,7 +86,7 @@ public final class CLDevice { public CLCommandQueue createCommandQueue(long properties) { if(context == null) throw new IllegalStateException("this device is not associated with a context"); - return new CLCommandQueue(context, this, properties); + return context.createCommandQueue(this, properties); } /*keep this package private for now, may be null*/ -- cgit v1.2.3