mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
fix for incorrect opencl device selection
This commit is contained in:
@@ -88,7 +88,7 @@ void UMatData::unlock()
|
||||
|
||||
MatAllocator* UMat::getStdAllocator()
|
||||
{
|
||||
if( ocl::haveOpenCL() )
|
||||
if( ocl::haveOpenCL() && ocl::useOpenCL() )
|
||||
return ocl::getOpenCLAllocator();
|
||||
return Mat::getStdAllocator();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user