Login  Register

typo in CLCommandQueue.putCopyImageToBuffer

Posted by notzed on Sep 27, 2011; 10:20pm
URL: https://forum.jogamp.org/typo-in-CLCommandQueue-putCopyImageToBuffer-tp3374149.html

Hi again Michael,

Spotted another typo, didn't seem worth a real bug report:

int ret = cl.clEnqueueCopyImageToBuffer(ID, dstBuffer.ID, srcImage.ID,
                                         ibA, ibB, dstOffset,
                                         conditions, conditionIDs, events==null ? null : events.IDs);

dstBuffer.ID and srcImage.ID should be swapped.

On nvidia/gpu I don't know what it did (didn't copy anything i presume), but on amd/cpu it spat with an invalid object error.

FWIW github's source code browser now runs like a pig and makes my laptop hot ...

Cheers,
 Michael