diff options
author | Michael Bien <[email protected]> | 2011-04-10 22:47:54 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-04-10 22:47:54 +0200 |
commit | 8a313c3240994d802af08673d095b0ec8ed69eac (patch) | |
tree | 8675133ce28a0d5129cd55a0fd90f7a68432bf6d /src/com/jogamp/opencl/CLBuffer.java | |
parent | eb0aeae72378942509942314b346ad9ed30e1333 (diff) |
using Buffers.sizeOfBufferElem(buffer) instead of old private implementation.
Diffstat (limited to 'src/com/jogamp/opencl/CLBuffer.java')
-rw-r--r-- | src/com/jogamp/opencl/CLBuffer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLBuffer.java b/src/com/jogamp/opencl/CLBuffer.java index fed7db11..57fba461 100644 --- a/src/com/jogamp/opencl/CLBuffer.java +++ b/src/com/jogamp/opencl/CLBuffer.java @@ -82,7 +82,7 @@ public class CLBuffer<B extends Buffer> extends CLMemory<B> { if(isHostPointerFlag(flags)) { host_ptr = directBuffer; } - int size = sizeOfBufferElem(directBuffer) * directBuffer.capacity(); + int size = Buffers.sizeOfBufferElem(directBuffer) * directBuffer.capacity(); long id = cl.clCreateBuffer(context.ID, flags, size, host_ptr, result, 0); checkForError(result[0], "can not create cl buffer"); |