fix opencv/opencv#20613
authorDale Phurrough <dale@hidale.com>
Fri, 10 Sep 2021 15:59:56 +0000 (17:59 +0200)
committerDale Phurrough <dale@hidale.com>
Fri, 10 Sep 2021 19:18:01 +0000 (21:18 +0200)
commitde1a45987964d466a13b3f9ba2e1e59b3be38cca
treea79ea6a62d01fd1ded8a9a3e55ffa6dd14cea1e5
parent1e0d290f2edf70bc894bffacb84522cc4810ff34
fix opencv/opencv#20613

* copy 4.x selectOpenCLDevice() -- it is compatible
* filter platforms rather than trying only first matching
* this works on 3.4 and 4.x master
modules/core/src/ocl.cpp