From 5e4dfb954688271f87ac9676a6eaad6622ce31ee Mon Sep 17 00:00:00 2001 From: Fangjun KUANG Date: Wed, 15 Feb 2017 16:44:40 +0100 Subject: [PATCH] Change the argument type to cl_platform_info. Although both `cl_platform_info` and `cl_device_info` are defined as macro `cl_uint`, it needs to use `cl_platform_info` to get the platform information. --- modules/core/src/ocl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/ocl.cpp b/modules/core/src/ocl.cpp index 60ecc69546..dfa1adb997 100644 --- a/modules/core/src/ocl.cpp +++ b/modules/core/src/ocl.cpp @@ -5528,7 +5528,7 @@ struct PlatformInfo::Impl getDevices(devices, handle); } - String getStrProp(cl_device_info prop) const + String getStrProp(cl_platform_info prop) const { char buf[1024]; size_t sz=0;