1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

ocl: fix PlatformInfo usage

This commit is contained in:
Alexander Alekhin
2020-09-25 19:22:12 +00:00
parent c32e349332
commit c945ea125a
4 changed files with 7 additions and 13 deletions
+4 -4
View File
@@ -459,7 +459,7 @@ Context& initializeContextFromD3D11Device(ID3D11Device* pD3D11Device)
}
cl_platform_id platform = platforms[found];
std::string platformName = PlatformInfo(platform).name();
std::string platformName = PlatformInfo(&platform).name();
OpenCLExecutionContext clExecCtx;
try
@@ -579,7 +579,7 @@ Context& initializeContextFromD3D10Device(ID3D10Device* pD3D10Device)
}
cl_platform_id platform = platforms[found];
std::string platformName = PlatformInfo(platform).name();
std::string platformName = PlatformInfo(&platform).name();
OpenCLExecutionContext clExecCtx;
try
@@ -701,7 +701,7 @@ Context& initializeContextFromDirect3DDevice9Ex(IDirect3DDevice9Ex* pDirect3DDev
}
cl_platform_id platform = platforms[found];
std::string platformName = PlatformInfo(platform).name();
std::string platformName = PlatformInfo(&platform).name();
OpenCLExecutionContext clExecCtx;
try
@@ -824,7 +824,7 @@ Context& initializeContextFromDirect3DDevice9(IDirect3DDevice9* pDirect3DDevice9
}
cl_platform_id platform = platforms[found];
std::string platformName = PlatformInfo(platform).name();
std::string platformName = PlatformInfo(&platform).name();
OpenCLExecutionContext clExecCtx;
try