Thanks to visit codestin.com
Credit goes to jogamp.org

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/jogamp/opencl/CLProgram.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLProgram.java b/src/com/jogamp/opencl/CLProgram.java
index 555ea99e..cfb94e6d 100644
--- a/src/com/jogamp/opencl/CLProgram.java
+++ b/src/com/jogamp/opencl/CLProgram.java
@@ -29,6 +29,7 @@
package com.jogamp.opencl;
import com.jogamp.common.nio.AbstractBuffer;
+import com.jogamp.common.nio.Buffers;
import com.jogamp.common.nio.CachedBufferFactory;
import com.jogamp.opencl.util.CLProgramConfiguration;
import com.jogamp.opencl.util.CLUtil;
@@ -643,7 +644,7 @@ public class CLProgram extends CLObjectResource {
final ByteBuffer binaries = newDirectByteBuffer(binariesSize);
- long address = UnsafeUtil.getDirectBufferAddress(binaries);
+ long address = Buffers.getDirectBufferAddress(binaries);
final PointerBuffer addresses = PointerBuffer.allocateDirect(sizes.capacity());
sizes.rewind();
while(sizes.remaining() != 0) {