diff options
author | Sven Gothel <[email protected]> | 2023-06-16 03:17:28 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-06-16 03:17:28 +0200 |
commit | dc1424050e47cd239ad26c4f12fb3a0e4289d682 (patch) | |
tree | f357d7494b49e64ae154ab5aa3363d8ae2598933 /src/com/jogamp/opencl/impl | |
parent | 5e957ba84836011400d9664785797ba6bdef449c (diff) |
Adopt to GlueGen change: Drop ManualStaticInitCall, PointerBuffer.ELEMENT_SIZE -> AbstractBuffer.POINTER_SIZE
Diffstat (limited to 'src/com/jogamp/opencl/impl')
-rw-r--r-- | src/com/jogamp/opencl/impl/CLTLAccessorFactory.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/impl/CLTLAccessorFactory.java b/src/com/jogamp/opencl/impl/CLTLAccessorFactory.java index 7195d592..b32636bf 100644 --- a/src/com/jogamp/opencl/impl/CLTLAccessorFactory.java +++ b/src/com/jogamp/opencl/impl/CLTLAccessorFactory.java @@ -33,6 +33,8 @@ package com.jogamp.opencl.impl; import java.nio.IntBuffer; + +import com.jogamp.common.nio.AbstractBuffer; import com.jogamp.common.nio.PointerBuffer; import com.jogamp.opencl.llb.CL; import com.jogamp.opencl.spi.CLAccessorFactory; @@ -103,7 +105,7 @@ public class CLTLAccessorFactory implements CLAccessorFactory { }else{ checkForError(ret, "error while enumerating devices"); - final PointerBuffer deviceIDs = PointerBuffer.wrap(getBB(count*PointerBuffer.ELEMENT_SIZE)); + final PointerBuffer deviceIDs = PointerBuffer.wrap(getBB(count*AbstractBuffer.POINTER_SIZE)); ret = cl.clGetDeviceIDs(ID, type, count, deviceIDs, null); checkForError(ret, "error while enumerating devices"); |