Merge pull request #939 from pengx17:2.4_getDevice

This commit is contained in:
Vadim Pisarevsky 2013-06-04 13:33:21 +04:00 committed by OpenCV Buildbot
commit 37953b7cf0

View File

@ -333,6 +333,10 @@ namespace cv
oclinfo.push_back(ocltmpinfo); oclinfo.push_back(ocltmpinfo);
} }
} }
if(devcienums > 0)
{
setDevice(oclinfo[0]);
}
return devcienums; return devcienums;
} }