summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLProgram.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-05-15 22:42:47 +0200
committerMichael Bien <[email protected]>2011-05-15 22:42:47 +0200
commitf12e3a9d7ac644abc98a51dc51786cf7c5b67851 (patch)
tree0a9933d8b36aaa5420d99f66c65f7d6d6b037cef /src/com/jogamp/opencl/CLProgram.java
parent9159e65a631af39942579cf2258fc20aab4814e5 (diff)
CLKernel code review.
- optimized create from name path - putArg should not increment the index if setting the argument fails - added putArg() test
Diffstat (limited to 'src/com/jogamp/opencl/CLProgram.java')
-rw-r--r--src/com/jogamp/opencl/CLProgram.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLProgram.java b/src/com/jogamp/opencl/CLProgram.java
index 1b1dd1d5..e8706a73 100644
--- a/src/com/jogamp/opencl/CLProgram.java
+++ b/src/com/jogamp/opencl/CLProgram.java
@@ -407,7 +407,7 @@ public class CLProgram extends CLObject implements CLResource {
throw newException(err[0], "unable to create Kernel with name: "+kernelName);
}
- CLKernel kernel = new CLKernel(this, id);
+ CLKernel kernel = new CLKernel(this, kernelName, id);
kernels.add(kernel);
return kernel;
}