Itseez/opencv — pull request #982 by pengx17 (2013-06-12 06:00:10+00:00)
Title: Fix two bugs related to opencl context.

1. As getDevice will implicitly call setDevice, in getContext we should not need to call it again.
2. Fix an incorrect type casting.