Login  Register

Re: CLMemory#getNIOSize should use buffer.limit() instead of buffer.capacity().

Posted by Wade Walker on Nov 15, 2016; 2:50pm
URL: https://forum.jogamp.org/CLMemory-getNIOSize-should-use-buffer-limit-instead-of-buffer-capacity-tp4037407p4037408.html

This sounds reasonable -- the original author probably just didn't consider the case where the user calls limit(int) on their buffer.

The question is what to do about it. I will commit your change to the repo if you'll submit a pull request on Github, but right now our build server is out of order, so there wouldn't automatically be a new build. Do you need help building a new version of JOCL?