Fix CID 1393663 (Big parameter passed by value)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-06-30 11:55:25 +02:00
parent 53596f7837
commit c9737c7f93

View File

@ -647,7 +647,7 @@ int OpenclDevice::SetKernelEnv( KernelEnv *envInfo )
return 1;
}
static cl_mem allocateZeroCopyBuffer(KernelEnv rEnv, l_uint32 *hostbuffer,
static cl_mem allocateZeroCopyBuffer(const KernelEnv &rEnv, l_uint32 *hostbuffer,
size_t nElements, cl_mem_flags flags,
cl_int *pStatus) {
cl_mem membuffer =