summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-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;