summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-10-30 14:02:12 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-10-30 14:03:33 -0400
commit6461b9c9d28f1f46b6338c768c51a4eeb366ebab (patch)
treedb6abe520e3424841487c47a692a1593647d61ba /sc/source
parent781363934af5c0ff3401161c385c6c93c9352c2c (diff)
Return false when no OpenCL device is detected.
Change-Id: Ib4e3e432cb69c17cf1830bfd540d4f5335056879
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/opencl/openclwrapper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx
index b629e536b0db..046297fd0688 100644
--- a/sc/source/core/opencl/openclwrapper.cxx
+++ b/sc/source/core/opencl/openclwrapper.cxx
@@ -2766,7 +2766,7 @@ bool switchOpenclDevice(const OUString* pDevice, bool bAutoSelect)
{
// we don't need to change anything
// still the same device
- return true;
+ return pDeviceId != NULL;
}
cl_platform_id platformId;