From 861de8a6e901f52465be3ae0e66f504c5fe537b1 Mon Sep 17 00:00:00 2001 From: peng xiao Date: Wed, 8 May 2013 17:19:34 +0800 Subject: [PATCH] CL_PLATFORM_VENDOR should be CL_PLATFORM_NAME. --- modules/ocl/src/initialization.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ocl/src/initialization.cpp b/modules/ocl/src/initialization.cpp index 29d81aa1dd..2b1baa6ffc 100644 --- a/modules/ocl/src/initialization.cpp +++ b/modules/ocl/src/initialization.cpp @@ -318,7 +318,7 @@ namespace cv openCLSafeCall(clGetDeviceIDs(platforms[i], devicetype, numsdev, &devices[0], 0)); Info ocltmpinfo; - openCLSafeCall(clGetPlatformInfo(platforms[i], CL_PLATFORM_VENDOR, sizeof(plfmName), plfmName, NULL)); + openCLSafeCall(clGetPlatformInfo(platforms[i], CL_PLATFORM_NAME, sizeof(plfmName), plfmName, NULL)); ocltmpinfo.PlatformName = String(plfmName); ocltmpinfo.impl->platName = String(plfmName); ocltmpinfo.impl->oclplatform = platforms[i];