summaryrefslogtreecommitdiff
path: root/desktop/source/app/opencl.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-07-12 09:47:23 +0100
committerTomaž Vajngerl <quikee@gmail.com>2016-07-12 09:00:32 +0000
commit605a5dc088385ad21c33028d8107125c0316ddb1 (patch)
treefbe9521e51815724eee07ee6d5f66c2e55ee1a95 /desktop/source/app/opencl.cxx
parent2e6608de95d0d845b6a2eccfaba7baebc992e7c8 (diff)
opencl: bail out early in missing OpenCL case.
Change-Id: I2ff1466ec89f4ad9743cedbfa5dd52be8bf86590 Reviewed-on: https://gerrit.libreoffice.org/27136 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
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 4c47767b8621..09f2204e07ca 100644
--- a/desktop/source/app/opencl.cxx
+++ b/desktop/source/app/opencl.cxx
@@ -122,6 +122,7 @@ void Desktop::CheckOpenCLCompute(const Reference< XDesktop2 > &xDesktop)
{
SAL_WARN("opencl", "Failed to initialize OpenCL for test");
OpenCLZone::hardDisable();
+ return;
}
// Append our app version as well.