diff options
author | Sven Gothel <[email protected]> | 2014-02-17 02:30:52 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-02-17 02:30:52 +0100 |
commit | 569726132f622e290bebc5d40c96f8115dbcb5da (patch) | |
tree | b68694bcf81370dbd3db9164f066979ea3cb58d5 /src/com/jogamp/opencl/llb/impl | |
parent | 43e07292432a8826e4ea426a2ba7c9a9d4b68537 (diff) |
Fix Bug 920 - JOCL does not work on windows with 32 bit vm (1/2)
The 'clGetExtensionFunctionAddress' function pointer declaration was faulty,
i.e. using CL_API_ENTRY instead of CL_API_CALL.
CL_API_CALL on windows is defined as '__stdcall' which impacts Window 32bit platforms.
Fixed same issue w/:
- clCreateContext
- clBuildProgram
Same issue occurs with _all_ gluegen generated native function wrappers,
i.e. CL_API_CALL is missing in the function declarations!
I will follow-up w/ this fix in a bit ..
Diffstat (limited to 'src/com/jogamp/opencl/llb/impl')
-rw-r--r-- | src/com/jogamp/opencl/llb/impl/CLDynamicLibraryBundleInfo.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/llb/impl/CLDynamicLibraryBundleInfo.java b/src/com/jogamp/opencl/llb/impl/CLDynamicLibraryBundleInfo.java index 36bc26f9..19d89fc1 100644 --- a/src/com/jogamp/opencl/llb/impl/CLDynamicLibraryBundleInfo.java +++ b/src/com/jogamp/opencl/llb/impl/CLDynamicLibraryBundleInfo.java @@ -135,12 +135,12 @@ public final class CLDynamicLibraryBundleInfo implements DynamicLibraryBundleInf private static int Impl_len = Impl_str.length(); @Override - public final long toolGetProcAddress(long toolGetProcAddressHandle, String funcName) { + public final long toolGetProcAddress(final long toolGetProcAddressHandle, String funcName) { //FIXME workaround to fix a gluegen issue if( funcName.endsWith(Impl_str) ) { funcName = funcName.substring(0, funcName.length() - Impl_len); } - if(funcName.endsWith("KHR") || funcName.endsWith("EXT")) { + if( funcName.endsWith("KHR") || funcName.endsWith("EXT") ) { return CLImpl.clGetExtensionFunctionAddress(toolGetProcAddressHandle, funcName); } return 0; // on libs .. |