From b1a2492a2d816e7d8518a460798d1faac35a8b9c Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Wed, 27 Apr 2011 16:51:49 +0200 Subject: missing rewind() --- src/com/jogamp/opencl/CLProgram.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/com/jogamp/opencl') 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) { -- cgit v1.2.3