diff options
author | Sven Gothel <[email protected]> | 2011-05-18 04:00:45 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-05-18 04:00:45 +0200 |
commit | c6f97a2e6ea1d337f371152a2fee65ee1dd4c5d5 (patch) | |
tree | 352756b92e3a6f9541848dc4cb8f73a6268e59cf /src/com/jogamp/opencl/CLInfoAccessor.java | |
parent | 773060662ef81707f70c447b71e664635ac45e2a (diff) |
Synced w/ mbien's JOCL branch - Making it compatible w/ GlueGen again
Diffstat (limited to 'src/com/jogamp/opencl/CLInfoAccessor.java')
-rw-r--r-- | src/com/jogamp/opencl/CLInfoAccessor.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/com/jogamp/opencl/CLInfoAccessor.java b/src/com/jogamp/opencl/CLInfoAccessor.java index 08d7305e..b005ec04 100644 --- a/src/com/jogamp/opencl/CLInfoAccessor.java +++ b/src/com/jogamp/opencl/CLInfoAccessor.java @@ -28,7 +28,7 @@ package com.jogamp.opencl; -import com.jogamp.common.nio.NativeSizeBuffer; +import com.jogamp.common.nio.PointerBuffer; import com.jogamp.common.os.Platform; import com.jogamp.opencl.util.CLUtil; import java.nio.Buffer; @@ -54,11 +54,11 @@ abstract class CLInfoAccessor { } }; - protected final static ThreadLocal<NativeSizeBuffer> localNSB = new ThreadLocal<NativeSizeBuffer>() { + protected final static ThreadLocal<PointerBuffer> localNSB = new ThreadLocal<PointerBuffer>() { @Override - protected NativeSizeBuffer initialValue() { - return NativeSizeBuffer.allocateDirect(1); + protected PointerBuffer initialValue() { + return PointerBuffer.allocateDirect(1); } }; @@ -74,7 +74,7 @@ abstract class CLInfoAccessor { public final String getString(int key) { - NativeSizeBuffer sizeBuffer = getNSB(); + PointerBuffer sizeBuffer = getNSB(); int ret = getInfo(key, 0, null, sizeBuffer); checkForError(ret, "error while asking for info string"); @@ -118,11 +118,11 @@ abstract class CLInfoAccessor { } } - protected NativeSizeBuffer getNSB() { + protected PointerBuffer getNSB() { return localNSB.get(); } - protected abstract int getInfo(int name, long valueSize, Buffer value, NativeSizeBuffer valueSizeRet); + protected abstract int getInfo(int name, long valueSize, Buffer value, PointerBuffer valueSizeRet); } |