summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLSubBuffer.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-05-01 07:06:45 +0200
committerSven Gothel <[email protected]>2011-05-01 07:06:45 +0200
commitdab2ffd696b5f9ccb192834c3e50132fad96a30a (patch)
treea174ad04342f32002197171eb895b2435fc42f49 /src/com/jogamp/opencl/CLSubBuffer.java
parent454f81a14da543faebae4c8e6adebb3256a2e646 (diff)
parentabcef28580df7ba0176390fe6d0a0eb1d969183d (diff)
Merge remote-tracking branch 'mbien/master'
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;
}