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