summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLSubBuffer.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-04-10 22:47:54 +0200
committerMichael Bien <[email protected]>2011-04-10 22:47:54 +0200
commit8a313c3240994d802af08673d095b0ec8ed69eac (patch)
tree8675133ce28a0d5129cd55a0fd90f7a68432bf6d /src/com/jogamp/opencl/CLSubBuffer.java
parenteb0aeae72378942509942314b346ad9ed30e1333 (diff)
using Buffers.sizeOfBufferElem(buffer) instead of old private implementation.
Diffstat (limited to 'src/com/jogamp/opencl/CLSubBuffer.java')
-rw-r--r--src/com/jogamp/opencl/CLSubBuffer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLSubBuffer.java b/src/com/jogamp/opencl/CLSubBuffer.java
index 89a74713..d8831783 100644
--- a/src/com/jogamp/opencl/CLSubBuffer.java
+++ b/src/com/jogamp/opencl/CLSubBuffer.java
@@ -28,6 +28,7 @@
package com.jogamp.opencl;
+import com.jogamp.common.nio.Buffers;
import com.jogamp.opencl.CLMemory.Mem;
import java.nio.Buffer;
@@ -72,7 +73,7 @@ public class CLSubBuffer<B extends Buffer> extends CLBuffer<B> {
* Returns the offset of this sub buffer to its parent in buffer elements.
*/
public int getOffset() {
- int elemSize = buffer==null ? 1 : sizeOfBufferElem(buffer);
+ int elemSize = buffer==null ? 1 : Buffers.sizeOfBufferElem(buffer);
return offset/elemSize;
}