Improvide device selection in the video filter example
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>
Thu, 12 Mar 2015 13:32:34 +0000 (14:32 +0100)
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>
Mon, 16 Mar 2015 13:00:43 +0000 (13:00 +0000)
commitd109e6dd5d6a18e715b979f3d3ef845946b1b787
tree5aeb69dc83efbf4d4b02f8c84a8795b3daa0d4b9
parent2099a8c3c77eea56b95a60e12f265b4eb1d8913d
Improvide device selection in the video filter example

The non-OS X path also uses clGetGLContextInfoKHR when available,
instead of just blindly taking the first GPU device for the platform.

This way we get the correct OpenCL device in case the application is using an
OpenGL context on the same vendor's second GPU.

On Windows desktop OpenGL is now correctly forced and therefore there is
no need to waste time on runtime checks for ANGLE later on.

Remove the hard-coded custom pathes from the .pro file.

Also fixes error reporting on the OS X specific path.

Change-Id: I8d6ab867510d113d5135b61e66822381e81c995a
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
examples/multimedia/video/qmlvideofilter_opencl/README
examples/multimedia/video/qmlvideofilter_opencl/main.cpp
examples/multimedia/video/qmlvideofilter_opencl/qmlvideofilter_opencl.pro