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

New commits:
commit 137f872aa8e6e598e7c7ed1ffa4d21e580e22bdb
Author: Michael Meeks <michael.me...@collabora.com>
Date:   Fri Nov 29 01:53:14 2013 +0000

    GPU Calc: NULL scores are really very high, it's an inverse scale.
    
    Change-Id: Iefe2cd87f499e624cbd3bd2583f6f0df90f4b4cb

diff --git a/sc/source/core/opencl/opencl_device.cxx 
b/sc/source/core/opencl/opencl_device.cxx
index 80062c6..371cdbf 100644
--- a/sc/source/core/opencl/opencl_device.cxx
+++ b/sc/source/core/opencl/opencl_device.cxx
@@ -394,7 +394,7 @@ ds_status pickBestDevice(ds_profile* profile, int* 
bestDeviceIdx)
         ds_device device = profile->devices[d];
         LibreOfficeDeviceScore *pScore = (LibreOfficeDeviceScore*)device.score;
 
-        float fScore = -1;
+        float fScore = DBL_MAX;
         if (pScore)
             fScore = pScore->fTime;
         else
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to