[Libreoffice-commits] core.git: Branch 'feature/calc-group-interpreter-4' - sc/source

Kohei Yoshida kohei.yoshida at collabora.com
Wed Oct 30 19:01:37 CET 2013


 sc/source/core/opencl/openclwrapper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8b997c8cfba34aea35efbaa0237beaf9d9c3653d
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Wed Oct 30 14:02:12 2013 -0400

    Return false when no OpenCL device is detected.
    
    Change-Id: Ib4e3e432cb69c17cf1830bfd540d4f5335056879

diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx
index b629e53..046297f 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;


More information about the Libreoffice-commits mailing list