CommandQueue.putCopyImageToBuffer() contains this call: 1039 int ret = cl.clEnqueueCopyImageToBuffer(ID, dstBuffer.ID, srcImage.ID, 1040 ibA, ibB, dstOffset, 1041 conditions, conditionIDs, events==null ? null : events.IDs); We need to switch the order of the dstBuffer.ID and srcImage.ID arguments...
Fix included in this pull request: https://github.com/JogAmp/jocl/pull/2
@LixoMan: Thank you very much!! If possible, please change to a real world name to easy our IP tracking .. thank you!