diff options
author | Michael Bien <[email protected]> | 2011-01-21 23:45:39 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-01-21 23:45:39 +0100 |
commit | 6ca42ce154439b8c2f7f76ce4300ae08678f223a (patch) | |
tree | 88eb37098dfa38eae86497544b41cf4d92232a4b /test/com | |
parent | 410b03d9fd33d3efe9654694aaeb0b63d1c32842 (diff) |
missing buffer rewind in source upload code (bug id: #458).
Diffstat (limited to 'test/com')
-rw-r--r-- | test/com/jogamp/opencl/LowLevelBindingTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/com/jogamp/opencl/LowLevelBindingTest.java b/test/com/jogamp/opencl/LowLevelBindingTest.java index b531dd94..524743b2 100644 --- a/test/com/jogamp/opencl/LowLevelBindingTest.java +++ b/test/com/jogamp/opencl/LowLevelBindingTest.java @@ -279,7 +279,7 @@ public class LowLevelBindingTest { // Create the program - PointerBuffer lengths = (PointerBuffer)PointerBuffer.allocateDirect(1).put(programSource.length()); + PointerBuffer lengths = (PointerBuffer)PointerBuffer.allocateDirect(1).put(programSource.length()).rewind(); final long program = cl.clCreateProgramWithSource(context, 1, new String[] {programSource}, lengths, intBuffer); out.println("program id: "+program); checkError("on clCreateProgramWithSource", intBuffer.get(0)); |