Possible fix for [#36086] Activating the opencl option in the compositor causes blend...
[blender.git] / intern / opencl / intern / OCL_opencl.c
index e3130e16bde7aae3ff833acf4c95a86f460f8083..33a936896fd7eaadd0d828238cf79c5630d75661 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "OCL_opencl.h"
 
-void OCL_init(void)
+int OCL_init(void)
 {
 #ifdef _WIN32
        const char *path = "OpenCL.dll";
@@ -32,6 +32,6 @@ void OCL_init(void)
        const char *path = "libOpenCL.so";
 #endif
 
-       clewInit(path);
+       return (clewInit(path) == CLEW_SUCCESS);
 }