summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLKernel.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-06-27 23:44:56 +0200
committerMichael Bien <[email protected]>2010-06-27 23:44:56 +0200
commit467453f0752f162ce297de0db27d6a4fef67d15f (patch)
tree005e02f82b122dcfa3c54f7ccf5db0992e49422d /src/com/jogamp/opencl/CLKernel.java
parentbe5f1d62838cd8709a1f4f881c08494246a8471f (diff)
minor refactorings and updates.
Diffstat (limited to 'src/com/jogamp/opencl/CLKernel.java')
-rw-r--r--src/com/jogamp/opencl/CLKernel.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/CLKernel.java b/src/com/jogamp/opencl/CLKernel.java
index 8fa000dc..785fbc78 100644
--- a/src/com/jogamp/opencl/CLKernel.java
+++ b/src/com/jogamp/opencl/CLKernel.java
@@ -5,7 +5,6 @@ import com.jogamp.common.nio.Buffers;
import com.jogamp.common.nio.PointerBuffer;
import java.nio.Buffer;
import java.nio.ByteBuffer;
-import java.nio.ByteOrder;
import static com.jogamp.opencl.CLException.*;
import static com.jogamp.opencl.CL.*;
@@ -45,7 +44,7 @@ public class CLKernel extends CLObject implements CLResource, Cloneable {
int ret = cl.clGetKernelInfo(ID, CL_KERNEL_FUNCTION_NAME, 0, null, size);
checkForError(ret, "error while asking for kernel function name");
- ByteBuffer bb = ByteBuffer.allocateDirect((int)size.get(0)).order(ByteOrder.nativeOrder());
+ ByteBuffer bb = Buffers.newDirectByteBuffer((int)size.get(0));
ret = cl.clGetKernelInfo(ID, CL_KERNEL_FUNCTION_NAME, bb.capacity(), bb, null);
checkForError(ret, "error while asking for kernel function name");