diff options
-rw-r--r-- | src/core/CL/OpenCL.cpp | 2 | ||||
-rw-r--r-- | src/core/GLES_COMPUTE/OpenGLES.cpp | 10 |
2 files changed, 2 insertions, 10 deletions
diff --git a/src/core/CL/OpenCL.cpp b/src/core/CL/OpenCL.cpp index 3a145e0ab3..157b6d6820 100644 --- a/src/core/CL/OpenCL.cpp +++ b/src/core/CL/OpenCL.cpp @@ -110,7 +110,7 @@ bool CLSymbols::load(const std::string &library) #undef LOAD_FUNCTION_PTR - dlclose(handle); + //Don't call dlclose(handle) or all the symbols will be unloaded ! // Disable default loading and set status to successful _loaded = std::make_pair(true, true); diff --git a/src/core/GLES_COMPUTE/OpenGLES.cpp b/src/core/GLES_COMPUTE/OpenGLES.cpp index fdfc085db2..d2539d0775 100644 --- a/src/core/GLES_COMPUTE/OpenGLES.cpp +++ b/src/core/GLES_COMPUTE/OpenGLES.cpp @@ -128,15 +128,7 @@ private: } } - if(glesv3_handle != nullptr) - { - dlclose(glesv3_handle); - } - if(glesv2_handle != nullptr) - { - dlclose(glesv2_handle); - } - dlclose(egl_handle); + //Don't call dlclose(handle) or all the symbols will be unloaded ! } } bool _initialized = false; |