summaryrefslogtreecommitdiff
path: root/desktop/source/app/opencl.cxx
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-10-17 09:33:26 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-10-17 09:33:26 +0000
commitd10d846eb9dd5f1f4e9577c62ad169f865b8a647 (patch)
treea59dc40342211d19f6c2c308f54f1f430557df82 /desktop/source/app/opencl.cxx
parent2f57632672fa2cd21c9b0113e7a5f8bd033157c4 (diff)
Force disable OpenCL in Safe Mode
Change-Id: I046eb2a01c528945232cedabbf5fa08483c9e057 Reviewed-on: https://gerrit.libreoffice.org/29960 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'desktop/source/app/opencl.cxx')
-rw-r--r--desktop/source/app/opencl.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop/source/app/opencl.cxx b/desktop/source/app/opencl.cxx
index f9f7dd228509..6d22e920535c 100644
--- a/desktop/source/app/opencl.cxx
+++ b/desktop/source/app/opencl.cxx
@@ -120,6 +120,7 @@ bool testOpenCLCompute(const Reference< XDesktop2 > &xDesktop, const OUString &r
void Desktop::CheckOpenCLCompute(const Reference< XDesktop2 > &xDesktop)
{
if (getenv("SAL_DISABLE_OPENCL") ||
+ Application::IsSafeModeEnabled() ||
!officecfg::Office::Common::Misc::UseOpenCL::get())
return;