Kaydet (Commit) 37488b56 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Honor selected device detection settings.

This fixes the problem of the software interpreter always getting selected
after initial startup where the settings are read from user configuration.

Change-Id: Iecbb7ae644c1264811f5280e1425a8dd776c2c1a
üst ec605049
...@@ -545,7 +545,10 @@ FormulaGroupInterpreter *FormulaGroupInterpreter::getStatic() ...@@ -545,7 +545,10 @@ FormulaGroupInterpreter *FormulaGroupInterpreter::getStatic()
if ( !msInstance ) if ( !msInstance )
{ {
switchOpenCLDevice(OUString(), ScInterpreter::GetGlobalConfig().mbOpenCLEnabled); const ScCalcConfig& rConfig = ScInterpreter::GetGlobalConfig();
if (rConfig.mbOpenCLEnabled)
switchOpenCLDevice(rConfig.maOpenCLDevice, rConfig.mbOpenCLAutoSelect, false);
if ( !msInstance ) // software fallback if ( !msInstance ) // software fallback
{ {
fprintf(stderr, "Create S/W interp\n"); fprintf(stderr, "Create S/W interp\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment