summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-04-27 16:51:49 +0200
committerMichael Bien <[email protected]>2011-04-27 16:51:49 +0200
commitb1a2492a2d816e7d8518a460798d1faac35a8b9c (patch)
treeafcc2fde45dad1550c50297ba0d1d742044a4dce /src
parent7d44ee784ffa59146d2d1d124f5ffc482fb0f5f0 (diff)
missing rewind()
Diffstat (limited to 'src')
-rw-r--r--src/com/jogamp/opencl/CLProgram.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/CLProgram.java b/src/com/jogamp/opencl/CLProgram.java
index 3293fe57..1b1dd1d5 100644
--- a/src/com/jogamp/opencl/CLProgram.java
+++ b/src/com/jogamp/opencl/CLProgram.java
@@ -626,6 +626,7 @@ public class CLProgram extends CLObject implements CLResource {
addresses.put(address);
address += sizes.get();
}
+ addresses.rewind();
ret = cl.clGetProgramInfo(ID, CL_PROGRAM_BINARIES, addresses.capacity()*NativeSizeBuffer.elementSize(), addresses.getBuffer(), null);
if(ret != CL_SUCCESS) {