From a93e4532f9515f5b2c0d2c67a45db1236a29ab12 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Fri, 12 Feb 2010 02:15:06 +0100 Subject: fixed bug in CL[GL]Context.create(..., device), added test. CLKernel is now Cloneable. --- resources/clImplCustomCode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'resources') diff --git a/resources/clImplCustomCode.java b/resources/clImplCustomCode.java index 814bb219..e981fbcc 100644 --- a/resources/clImplCustomCode.java +++ b/resources/clImplCustomCode.java @@ -18,11 +18,11 @@ return this.clCreateContext0( properties!=null?properties.getBuffer():null, BufferFactory.getDirectBufferByteOffset(properties), - devices!=null?devices.getBuffer():null, BufferFactory.getDirectBufferByteOffset(devices), + devices!=null?devices.remaining():0, devices!=null?devices.getBuffer():null, BufferFactory.getDirectBufferByteOffset(devices), null, null, errcode_ret, BufferFactory.getDirectBufferByteOffset(errcode_ret) ); } - private native long clCreateContext0(Object cl_context_properties, int props_offset, Object devices, int devices_offset, CreateContextCallback pfn_notify, Object userData, Object errcode_ret, int err_offset); + private native long clCreateContext0(Object cl_context_properties, int props_offset, int numDevices, Object devices, int devices_offset, CreateContextCallback pfn_notify, Object userData, Object errcode_ret, int err_offset); public long clCreateContextFromType(PointerBuffer properties, long device_type, CreateContextCallback pfn_notify, Object userData, IntBuffer errcode_ret) { -- cgit v1.2.3