aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLImage3d.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/CLImage3d.java
parent9dab3d93ffaa04f9cf370648c67219694c58555a (diff)
changes due to BufferFactory -> Buffers renaming in gluegen.
Diffstat (limited to 'src/com/mbien/opencl/CLImage3d.java')
-rw-r--r--src/com/mbien/opencl/CLImage3d.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/mbien/opencl/CLImage3d.java b/src/com/mbien/opencl/CLImage3d.java
index bef7ac57..30db943f 100644
--- a/src/com/mbien/opencl/CLImage3d.java
+++ b/src/com/mbien/opencl/CLImage3d.java
@@ -1,6 +1,6 @@
package com.mbien.opencl;
-import com.jogamp.gluegen.runtime.BufferFactory;
+import com.jogamp.gluegen.runtime.Buffers;
import java.nio.Buffer;
import java.nio.IntBuffer;
@@ -30,7 +30,7 @@ public class CLImage3d<B extends Buffer> extends CLImage<B> {
int width, int height, int depth, int rowPitch, int slicePitch, CLImageFormat format, int flags) {
CL cl = context.cl;
- IntBuffer err = BufferFactory.newDirectByteBuffer(4).asIntBuffer();
+ IntBuffer err = Buffers.newDirectByteBuffer(4).asIntBuffer();
long id = cl.clCreateImage3D(context.ID, flags, format.getFormatImpl(), width, height, depth, rowPitch, slicePitch, directBuffer, err);
checkForError(err.get(), "can not create 2d image");