diff options
author | Michael Bien <[email protected]> | 2010-04-01 00:38:46 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-04-01 00:38:46 +0200 |
commit | fc0f84073394c6c06505f0c52215a72932b527c5 (patch) | |
tree | 7dafc9f55e0d24d8e28b4f96699c531ef26689f5 /src/com/mbien/opencl/CLContext.java | |
parent | 11734980ca3a3457ed67fd054fa3041ba9b8040e (diff) |
modifications due to class movement in gluegen.
Diffstat (limited to 'src/com/mbien/opencl/CLContext.java')
-rw-r--r-- | src/com/mbien/opencl/CLContext.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/mbien/opencl/CLContext.java b/src/com/mbien/opencl/CLContext.java index da3899ec..3e6a72ed 100644 --- a/src/com/mbien/opencl/CLContext.java +++ b/src/com/mbien/opencl/CLContext.java @@ -4,8 +4,8 @@ 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.Int64Buffer; -import com.jogamp.gluegen.runtime.PointerBuffer; +import com.jogamp.common.nio.Int64Buffer; +import com.jogamp.common.nio.PointerBuffer; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; @@ -25,8 +25,8 @@ import java.util.HashMap; import java.util.List; import java.util.Map; import static com.mbien.opencl.CLException.*; -import static com.jogamp.gluegen.runtime.Buffers.*; -import static com.jogamp.gluegen.runtime.Platform.*; +import static com.jogamp.common.nio.Buffers.*; +import static com.jogamp.common.os.Platform.*; /** * CLContext is responsible for managing objects such as command-queues, memory, @@ -176,7 +176,7 @@ public class CLContext extends CLObject implements CLResource { throw new RuntimeException("no OpenCL installation found"); } - return PointerBuffer.allocateDirect(3).put(CL.CL_CONTEXT_PLATFORM) + return (PointerBuffer)PointerBuffer.allocateDirect(3).put(CL.CL_CONTEXT_PLATFORM) .put(platform.ID).put(0) // 0 terminated array .rewind(); } |