summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bien <mbien@fh-landshut.de>2011-04-27 16:51:49 +0200
committerMichael Bien <mbien@fh-landshut.de>2011-04-27 16:51:49 +0200
commitb1a2492a2d816e7d8518a460798d1faac35a8b9c (patch)
treeafcc2fde45dad1550c50297ba0d1d742044a4dce
parent7d44ee784ffa59146d2d1d124f5ffc482fb0f5f0 (diff)
missing rewind()
-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 3293fe5..1b1dd1d 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) {