aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/jogamp/opencl/CLProgram.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/jogamp/opencl/CLProgram.java b/src/com/jogamp/opencl/CLProgram.java
index e74ebed..323e9b3 100644
--- a/src/com/jogamp/opencl/CLProgram.java
+++ b/src/com/jogamp/opencl/CLProgram.java
@@ -83,9 +83,7 @@ public class CLProgram extends CLObject implements CLResource {
int err = status.get();
if(err != CL_SUCCESS) {
- // don't remove: locks the reference (length and srcArray)
- length.rewind();
- throw newException(err, "can not create program with source (length="+srcArray[0].length()+") on "+context);
+ throw newException(err, "can not create program with source on "+context);
}
return new CLProgram(context, id);