Skip to content

Commit

Permalink
missing rewind()
Browse files Browse the repository at this point in the history
  • Loading branch information
mbien committed Apr 27, 2011
1 parent 7d44ee7 commit b1a2492
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/jogamp/opencl/CLProgram.java
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ public Map<CLDevice, byte[]> getBinaries() {
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) {
Expand Down

0 comments on commit b1a2492

Please sign in to comment.