summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-01-22 03:07:11 +0100
committerMichael Bien <[email protected]>2011-01-22 03:07:11 +0100
commitcecd8d38d5485ff0a510aafd3aadc4058d525560 (patch)
treebcca6411f2c19525fc0f5802f20a7b0dd0a6808c /src/com
parent6ca42ce154439b8c2f7f76ce4300ae08678f223a (diff)
reverted reference lock since its not needed.
Diffstat (limited to 'src/com')
-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 e74ebed3..323e9b34 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);