aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLImage3d.java
diff options
context:
space:
mode:
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");