From cecd8d38d5485ff0a510aafd3aadc4058d525560 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sat, 22 Jan 2011 03:07:11 +0100 Subject: reverted reference lock since its not needed. --- src/com/jogamp/opencl/CLProgram.java | 4 +--- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3