summaryrefslogtreecommitdiffstats
path: root/test/com/jogamp/opencl/LowLevelBindingTest.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-01-21 23:45:39 +0100
committerMichael Bien <[email protected]>2011-01-21 23:45:39 +0100
commit6ca42ce154439b8c2f7f76ce4300ae08678f223a (patch)
tree88eb37098dfa38eae86497544b41cf4d92232a4b /test/com/jogamp/opencl/LowLevelBindingTest.java
parent410b03d9fd33d3efe9654694aaeb0b63d1c32842 (diff)
missing buffer rewind in source upload code (bug id: #458).
Diffstat (limited to 'test/com/jogamp/opencl/LowLevelBindingTest.java')
-rw-r--r--test/com/jogamp/opencl/LowLevelBindingTest.java2
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));