sc/source/core/opencl/openclwrapper.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit aa5f24ef30c635ba15fa1847bb2621661b8a1878 Author: Markus Mohrhard <[email protected]> Date: Wed Nov 20 16:30:07 2013 +0100 clewInit is important before the changes clewInit was called by fillOpenCLInfo. Now we need to do that manually. diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx index efe52a4..a1acffb 100644 --- a/sc/source/core/opencl/openclwrapper.cxx +++ b/sc/source/core/opencl/openclwrapper.cxx @@ -899,6 +899,10 @@ bool switchOpenclDevice(const OUString* pDevice, bool bAutoSelect) if(!pDeviceId || bAutoSelect) { + int status = clewInit(OPENCL_DLL_NAME); + if (status < 0) + return false; + OUString url("${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("bootstrap") ":UserInstallation}/cache/"); rtl::Bootstrap::expandMacros(url); OUString path; _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
