Kaydet (Commit) 6461b9c9 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Return false when no OpenCL device is detected.

Change-Id: Ib4e3e432cb69c17cf1830bfd540d4f5335056879
üst 78136393
...@@ -2766,7 +2766,7 @@ bool switchOpenclDevice(const OUString* pDevice, bool bAutoSelect) ...@@ -2766,7 +2766,7 @@ bool switchOpenclDevice(const OUString* pDevice, bool bAutoSelect)
{ {
// we don't need to change anything // we don't need to change anything
// still the same device // still the same device
return true; return pDeviceId != NULL;
} }
cl_platform_id platformId; cl_platform_id platformId;
......
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