summaryrefslogtreecommitdiffstats
path: root/resources/clImplCustomCode.c
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2009-10-27 18:51:36 +0100
committerMichael Bien <[email protected]>2009-10-27 18:51:36 +0100
commit4df2a1b266a25c1d37126acdb82cf578ac61f9a8 (patch)
treec9543bcae35dd674d09aa47eb712b9b261638d67 /resources/clImplCustomCode.c
parent30cd68083930688693ebdfefdeda609d857a2c8a (diff)
generified CLBuffer, added createFromGLBuffer(...).
Diffstat (limited to 'resources/clImplCustomCode.c')
-rw-r--r--resources/clImplCustomCode.c4
1 files changed, 2 insertions, 2 deletions
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...