aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLContext.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-03-29 04:09:24 +0200
committerMichael Bien <[email protected]>2010-03-29 04:09:24 +0200
commit1c0265824a1a86e758abf7f0a0b1d1e43c5ef167 (patch)
tree369232785f03fd4844ae073ef063dd5a09576173 /src/com/mbien/opencl/CLContext.java
parent9dab3d93ffaa04f9cf370648c67219694c58555a (diff)
changes due to BufferFactory -> Buffers renaming in gluegen.
Diffstat (limited to 'src/com/mbien/opencl/CLContext.java')
-rw-r--r--src/com/mbien/opencl/CLContext.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/mbien/opencl/CLContext.java b/src/com/mbien/opencl/CLContext.java
index 0d9e1d90..9f7f1096 100644
--- a/src/com/mbien/opencl/CLContext.java
+++ b/src/com/mbien/opencl/CLContext.java
@@ -4,7 +4,7 @@ import com.mbien.opencl.CLDevice.Type;
import com.mbien.opencl.CLMemory.Mem;
import com.mbien.opencl.CLSampler.AddressingMode;
import com.mbien.opencl.CLSampler.FilteringMode;
-import com.jogamp.gluegen.runtime.BufferFactory;
+import com.jogamp.gluegen.runtime.Buffers;
import com.jogamp.gluegen.runtime.CPU;
import com.jogamp.gluegen.runtime.PointerBuffer;
import java.io.BufferedReader;
@@ -26,7 +26,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static com.mbien.opencl.CLException.*;
-import static com.jogamp.gluegen.runtime.BufferFactory.*;
+import static com.jogamp.gluegen.runtime.Buffers.*;
/**
* CLContext is responsible for managing objects such as command-queues, memory,
@@ -156,7 +156,7 @@ public class CLContext extends CLObject implements CLResource {
protected static long createContext(PointerBuffer properties, CLDevice... devices) {
- IntBuffer status = BufferFactory.newDirectByteBuffer(4).asIntBuffer();
+ IntBuffer status = Buffers.newDirectByteBuffer(4).asIntBuffer();
PointerBuffer pb = null;
if(devices != null && devices.length != 0) {
pb = PointerBuffer.allocateDirect(devices.length);