sc/source/core/opencl/openclwrapper.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 48dad589e319c3545d9764b101a9834d55a09e43
Author: Markus Mohrhard <markus.mohrh...@googlemail.com>
Date:   Tue Dec 3 16:25:51 2013 +0100

    fix crash when no platform is available
    
    Change-Id: I730cd231ab6fe4626fefc1ddab67c1b9d77ecd0a

diff --git a/sc/source/core/opencl/openclwrapper.cxx 
b/sc/source/core/opencl/openclwrapper.cxx
index cf74a4be..5925440 100644
--- a/sc/source/core/opencl/openclwrapper.cxx
+++ b/sc/source/core/opencl/openclwrapper.cxx
@@ -922,6 +922,9 @@ void findDeviceInfoFromDeviceId(cl_device_id aDeviceId, 
size_t& rDeviceId, size_
 
 bool switchOpenclDevice(const OUString* pDevice, bool bAutoSelect, bool 
bForceEvaluation)
 {
+    if(fillOpenCLInfo().empty())
+        return false;
+
     cl_device_id pDeviceId = NULL;
     if(pDevice)
         pDeviceId = findDeviceIdByDeviceString(*pDevice, fillOpenCLInfo());
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to