From 8a313c3240994d802af08673d095b0ec8ed69eac Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sun, 10 Apr 2011 22:47:54 +0200 Subject: using Buffers.sizeOfBufferElem(buffer) instead of old private implementation. --- src/com/jogamp/opencl/CLSubBuffer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/jogamp/opencl/CLSubBuffer.java') 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 extends CLBuffer { * 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; } -- cgit v1.2.3