diff options
author | Jagan Lokanatha <Jagan.Lokanatha@amd.com> | 2013-11-21 15:14:14 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-21 15:15:39 -0500 |
commit | 5556b1ffaf81543af680c1f68b79f36d7ad1785e (patch) | |
tree | b92468e36c1e07170e05874bc163778daa576521 | |
parent | Add a comment explaining this unused file (diff) | |
download | core-5556b1ffaf81543af680c1f68b79f36d7ad1785e.tar.gz core-5556b1ffaf81543af680c1f68b79f36d7ad1785e.zip |
Ensure that when ds_profile is NULL, NATIVE_CPU is selected.
Change-Id: Iab714a296ce0f807b5badd1ff96a99f3da2b24f8
-rw-r--r-- | sc/source/core/opencl/opencl_device.cxx | 2 |
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 3eb415b3f375..8f9f8ffa1714 100644 --- a/sc/source/core/opencl/opencl_device.cxx +++ b/sc/source/core/opencl/opencl_device.cxx @@ -447,7 +447,7 @@ ds_device getDeviceSelection(const char* sProfilePath, bool bForceSelection) if (!profile) { // failed to initialize profile. - selectedDevice.oclDeviceID = NULL; + selectedDevice.type = DS_DEVICE_NATIVE_CPU; return selectedDevice; } |