summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLImage2d.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-06-15 16:32:27 +0200
committerMichael Bien <[email protected]>2011-06-15 16:32:27 +0200
commit4373f933333ecee50dea9686403b6f81759e3b07 (patch)
treebc3883f431a7e2581c80189c466362bb5d6b31f3 /src/com/jogamp/opencl/CLImage2d.java
parent841d04d5716cbd7ce98a482060c656b1d5050949 (diff)
internal refactoring to use new binding interfaces in highlevel api impl.
Diffstat (limited to 'src/com/jogamp/opencl/CLImage2d.java')
-rw-r--r--src/com/jogamp/opencl/CLImage2d.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/CLImage2d.java b/src/com/jogamp/opencl/CLImage2d.java
index 9a5d5edc..05ac966a 100644
--- a/src/com/jogamp/opencl/CLImage2d.java
+++ b/src/com/jogamp/opencl/CLImage2d.java
@@ -29,7 +29,7 @@
package com.jogamp.opencl;
import com.jogamp.common.nio.Buffers;
-import com.jogamp.opencl.llb.CL;
+import com.jogamp.opencl.llb.CLImageBinding;
import java.nio.Buffer;
import java.nio.IntBuffer;
@@ -52,7 +52,7 @@ public class CLImage2d<B extends Buffer> extends CLImage<B> {
static <B extends Buffer> CLImage2d<B> createImage(CLContext context, B directBuffer,
int width, int height, int rowPitch, CLImageFormat format, int flags) {
- CL cl = context.cl;
+ CLImageBinding cl = context.getPlatform().getImageBinding();
IntBuffer err = Buffers.newDirectIntBuffer(1);
B host_ptr = null;
if(isHostPointerFlag(flags)) {