Kaydet (Commit) aa5f24ef authored tarafından Markus Mohrhard's avatar Markus Mohrhard

clewInit is important

before the changes clewInit was called by fillOpenCLInfo. Now we need to
do that manually.
üst 776f48eb
...@@ -899,6 +899,10 @@ bool switchOpenclDevice(const OUString* pDevice, bool bAutoSelect) ...@@ -899,6 +899,10 @@ bool switchOpenclDevice(const OUString* pDevice, bool bAutoSelect)
if(!pDeviceId || 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/"); OUString url("${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("bootstrap") ":UserInstallation}/cache/");
rtl::Bootstrap::expandMacros(url); rtl::Bootstrap::expandMacros(url);
OUString path; OUString path;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment