diff options
author | Sven Gothel <[email protected]> | 2011-05-01 07:06:45 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-05-01 07:06:45 +0200 |
commit | dab2ffd696b5f9ccb192834c3e50132fad96a30a (patch) | |
tree | a174ad04342f32002197171eb895b2435fc42f49 /src/com/jogamp/opencl/CLBuffer.java | |
parent | 454f81a14da543faebae4c8e6adebb3256a2e646 (diff) | |
parent | abcef28580df7ba0176390fe6d0a0eb1d969183d (diff) |
Merge remote-tracking branch 'mbien/master'
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"); |