Skip to content
Permalink
Browse files

fix #41182 load system OpenCL (#41374)

  • Loading branch information
PeterPetrik committed Feb 8, 2021
1 parent 2f59a3a commit e533b267e8fa95b84d8bf6385853d2ced74b3197
Showing with 5 additions and 1 deletion.
  1. +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() )
{

0 comments on commit e533b26

Please sign in to comment.