summaryrefslogtreecommitdiff
path: root/sc/source/core/opencl/openclwrapper.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-20 16:30:07 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-20 16:30:07 +0100
commitaa5f24ef30c635ba15fa1847bb2621661b8a1878 (patch)
treee8692b8fad7a96b6b04b8bf6ddd91110677c396b /sc/source/core/opencl/openclwrapper.cxx
parent776f48eb97a99e077824741ad300fed27e4edd14 (diff)
clewInit is important
before the changes clewInit was called by fillOpenCLInfo. Now we need to do that manually.
Diffstat (limited to 'sc/source/core/opencl/openclwrapper.cxx')
-rw-r--r--sc/source/core/opencl/openclwrapper.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx
index efe52a41ac42..a1acffbf0428 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;