From 4df2a1b266a25c1d37126acdb82cf578ac61f9a8 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Tue, 27 Oct 2009 18:51:36 +0100 Subject: generified CLBuffer, added createFromGLBuffer(...). --- resources/clImplCustomCode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'resources/clImplCustomCode.c') diff --git a/resources/clImplCustomCode.c b/resources/clImplCustomCode.c index 57d1c3e3..864edc6b 100644 --- a/resources/clImplCustomCode.c +++ b/resources/clImplCustomCode.c @@ -110,7 +110,7 @@ Java_com_mbien_opencl_impl_CLImpl_clCreateContext1(JNIEnv *env, jobject _unused, */ JNIEXPORT jint JNICALL Java_com_mbien_opencl_impl_CLImpl_clBuildProgram1(JNIEnv *env, jobject _unused, - jlong program, jint deviceCount, jobject deviceList, jint offset, jstring options, jobject cb, jobject data) { + jlong program, jint deviceCount, jobject deviceList, jstring options, jobject cb, jobject data) { const char* _strchars_options = NULL; cl_int _res; @@ -126,7 +126,7 @@ Java_com_mbien_opencl_impl_CLImpl_clBuildProgram1(JNIEnv *env, jobject _unused, } if (deviceList != NULL) { - _deviceListPtr = (void *) (((char*) (*env)->GetPrimitiveArrayCritical(env, deviceList, NULL)) + offset); + _deviceListPtr = (void *) (((char*) (*env)->GetPrimitiveArrayCritical(env, deviceList, NULL))); } // TODO payload, callback... -- cgit v1.2.3