Skip to content

Commit

Permalink
fix display corruption bug when using integrated hd5500
Browse files Browse the repository at this point in the history
  • Loading branch information
hughperkins committed May 31, 2015
1 parent 77d12ba commit 122077c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EasyCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void EasyCL::init(int gpuIndex, bool verbose ) {
}

cl_uint num_devices;
error = clGetDeviceIDs(platform_id, CL_DEVICE_TYPE_GPU | CL_DEVICE_TYPE_ACCELERATOR , 1, &device, &num_devices);
error = clGetDeviceIDs(platform_id, CL_DEVICE_TYPE_GPU | CL_DEVICE_TYPE_ACCELERATOR , 0, 0, &num_devices);
if (error != CL_SUCCESS) {
throw std::runtime_error( "Error getting device ids: " + errorMessage(error) );
}
Expand Down

0 comments on commit 122077c

Please sign in to comment.