Fix two bugs related to opencl context.
authorPeng Xiao <pengxiao@outlook.com>
Wed, 12 Jun 2013 05:55:20 +0000 (13:55 +0800)
committerPeng Xiao <pengxiao@outlook.com>
Wed, 12 Jun 2013 05:55:20 +0000 (13:55 +0800)
commitd9ab22e4ed63ca53634c74d7c022d60106879f23
treeebfdccc7c03eb1d3383261dd427009253e48746c
parent98f6a4a615e3542d7b2f757c089036ebc3ff3eed
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.
modules/ocl/src/initialization.cpp