Not too surprising that this causes problems, but maybe it could be addressed or else just documented?
I have a case of:
clbuffer.write(queue, Pointer.pointerToShorts(shortArr);
That I had to change for edge case to:
if (shortArr.length > 0) clbuffer.write(queue, Pointer.pointerToShorts(shortArr);
Not too surprising that this causes problems, but maybe it could be addressed or else just documented?
I have a case of:
clbuffer.write(queue, Pointer.pointerToShorts(shortArr);
That I had to change for edge case to:
if (shortArr.length > 0) clbuffer.write(queue, Pointer.pointerToShorts(shortArr);