Re: Api copy works when copying individual elements but not the entire buffer
Posted by
gouessej on
Oct 25, 2012; 7:49am
URL: https://forum.jogamp.org/Api-copy-works-when-copying-individual-elements-but-not-the-entire-buffer-tp4026612p4026615.html
Hi
The first put() method you use is relative whereas
the second put() method you use is absolute (cf. the Java documentation). In the first case, just call clBuffer.getBuffer().rewind() before calling clQueue.putWriteBuffer(clBuffer, true) and it should work.