diff options
author | Michael Bien <[email protected]> | 2011-04-27 16:51:49 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-04-27 16:51:49 +0200 |
commit | b1a2492a2d816e7d8518a460798d1faac35a8b9c (patch) | |
tree | afcc2fde45dad1550c50297ba0d1d742044a4dce /src/com/jogamp/opencl | |
parent | 7d44ee784ffa59146d2d1d124f5ffc482fb0f5f0 (diff) |
missing rewind()
Diffstat (limited to 'src/com/jogamp/opencl')
-rw-r--r-- | src/com/jogamp/opencl/CLProgram.java | 1 |
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) { |