aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLMemory.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-05-01 06:56:02 +0200
committerSven Gothel <[email protected]>2011-05-01 06:56:02 +0200
commit454f81a14da543faebae4c8e6adebb3256a2e646 (patch)
tree0ebb654ae2c7e943c0c0844abbf45948b2506a49 /src/com/jogamp/opencl/CLMemory.java
parent493ff62aa94c224a7b5db6ea092e3c80ff0205bc (diff)
Sync w/ gluegen change 8f8aa3f73e3c9804c4a86f5d4fdac257d50d831a / PointerBuffer's elementSize() is no more static
Diffstat (limited to 'src/com/jogamp/opencl/CLMemory.java')
-rw-r--r--src/com/jogamp/opencl/CLMemory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLMemory.java b/src/com/jogamp/opencl/CLMemory.java
index 25253803..5b0422ca 100644
--- a/src/com/jogamp/opencl/CLMemory.java
+++ b/src/com/jogamp/opencl/CLMemory.java
@@ -102,7 +102,7 @@ public abstract class CLMemory <B extends Buffer> extends CLObject implements CL
protected static long getSizeImpl(CL cl, long id) {
PointerBuffer pb = PointerBuffer.allocateDirect(1);
- int ret = cl.clGetMemObjectInfo(id, CL_MEM_SIZE, PointerBuffer.elementSize(), pb.getBuffer(), null);
+ int ret = cl.clGetMemObjectInfo(id, CL_MEM_SIZE, pb.elementSize(), pb.getBuffer(), null);
checkForError(ret, "can not obtain buffer info");
return pb.get();
}