summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2013-11-29 01:53:14 +0000
committerMichael Meeks <michael.meeks@collabora.com>2013-11-29 01:54:38 +0000
commit137f872aa8e6e598e7c7ed1ffa4d21e580e22bdb (patch)
tree637972c668b2237d38071234ebfd8f1274a6b5b7 /sc
parent45e331cae69d89ce1c2f7e11b0abb47a764d3801 (diff)
GPU Calc: NULL scores are really very high, it's an inverse scale.
Change-Id: Iefe2cd87f499e624cbd3bd2583f6f0df90f4b4cb
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/opencl/opencl_device.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/opencl/opencl_device.cxx b/sc/source/core/opencl/opencl_device.cxx
index 80062c6a9877..371cdbf7f64a 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