diff options
author | Sven Gothel <[email protected]> | 2023-07-12 01:49:31 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-07-12 01:49:31 +0200 |
commit | 791eb1b2ae3001f04d59a61f634161e21d96ef6d (patch) | |
tree | 24be59b1a6bcbbec4e09c972d461ae2fe69078b9 /src/com/jogamp/opencl/CLMemory.java | |
parent | dc1424050e47cd239ad26c4f12fb3a0e4289d682 (diff) | |
parent | 2ad07a7e3e8cf1fc29fe7cbb3256c4c2cda27d02 (diff) |
Merge remote-tracking branch 'wwalker/master'v2.5.0
Diffstat (limited to 'src/com/jogamp/opencl/CLMemory.java')
-rw-r--r-- | src/com/jogamp/opencl/CLMemory.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/CLMemory.java b/src/com/jogamp/opencl/CLMemory.java index 6a28d0a5..00f51b6b 100644 --- a/src/com/jogamp/opencl/CLMemory.java +++ b/src/com/jogamp/opencl/CLMemory.java @@ -145,7 +145,7 @@ public abstract class CLMemory <B extends Buffer> extends CLObjectResource { if(buffer == null) { return 0; } - return buffer.capacity(); + return buffer.limit(); } /** @@ -155,7 +155,7 @@ public abstract class CLMemory <B extends Buffer> extends CLObjectResource { if(buffer == null) { return 0; } - return getElementSize() * buffer.capacity(); + return getElementSize() * buffer.limit(); } /** |