aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/CL/OpenCL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/CL/OpenCL.cpp b/src/core/CL/OpenCL.cpp
index 8aa9b2bc1e..6a951a6309 100644
--- a/src/core/CL/OpenCL.cpp
+++ b/src/core/CL/OpenCL.cpp
@@ -107,7 +107,7 @@ bool CLSymbols::load(const std::vector<std::string> &libraries_filenames, bool u
break;
}
}
- if(index == libraries_filenames.size())
+ if(handle == nullptr)
{
// Set status of loading to failed
_loaded.second = false;