Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
5 additions
and
1 deletion.
-
+5
−1
src/core/qgsopenclutils.cpp
|
@@ -83,7 +83,11 @@ void QgsOpenClUtils::init() |
|
|
static std::once_flag initialized; |
|
|
std::call_once( initialized, [ = ]( ) |
|
|
{ |
|
|
QLibrary openCLLib{ QStringLiteral( "OpenCL" ) }; |
|
|
#ifdef Q_OS_MAC |
|
|
QLibrary openCLLib { QStringLiteral( "/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL" ) }; |
|
|
#else |
|
|
QLibrary openCLLib { QStringLiteral( "OpenCL" ) }; |
|
|
#endif |
|
|
openCLLib.setLoadHints( QLibrary::LoadHint::ResolveAllSymbolsHint ); |
|
|
if ( ! openCLLib.load() ) |
|
|
{ |
|
|