diff options
author | Michael Bien <[email protected]> | 2010-03-29 04:09:24 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-03-29 04:09:24 +0200 |
commit | 1c0265824a1a86e758abf7f0a0b1d1e43c5ef167 (patch) | |
tree | 369232785f03fd4844ae073ef063dd5a09576173 /src/com/mbien/opencl/CLImage2d.java | |
parent | 9dab3d93ffaa04f9cf370648c67219694c58555a (diff) |
changes due to BufferFactory -> Buffers renaming in gluegen.
Diffstat (limited to 'src/com/mbien/opencl/CLImage2d.java')
-rw-r--r-- | src/com/mbien/opencl/CLImage2d.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/mbien/opencl/CLImage2d.java b/src/com/mbien/opencl/CLImage2d.java index 337b0021..2c7a3a87 100644 --- a/src/com/mbien/opencl/CLImage2d.java +++ b/src/com/mbien/opencl/CLImage2d.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; @@ -24,7 +24,7 @@ public class CLImage2d<B extends Buffer> extends CLImage<B> { int width, int height, int rowPitch, CLImageFormat format, int flags) { CL cl = context.cl; - IntBuffer err = BufferFactory.newDirectByteBuffer(4).asIntBuffer(); + IntBuffer err = Buffers.newDirectByteBuffer(4).asIntBuffer(); long id = cl.clCreateImage2D(context.ID, flags, format.getFormatImpl(), width, height, rowPitch, directBuffer, err); checkForError(err.get(), "can not create 2d image"); |