From: Stephen Seo Date: Tue, 16 Nov 2021 08:41:13 +0000 (+0900) Subject: Fix compiler error, minor fix X-Git-Url: https://git.seodisparate.com/tbm-server-edit-damage-sources.png?a=commitdiff_plain;h=e3d1012af80b1d07b6aabd7aa90b311e7a5ea7d9;p=EN605.617.81.FA21_StephenSeo_DitheringProject Fix compiler error, minor fix --- diff --git a/src/opencl_handle.cc b/src/opencl_handle.cc index 1710414..9cfff81 100644 --- a/src/opencl_handle.cc +++ b/src/opencl_handle.cc @@ -4,8 +4,6 @@ #include #include -#include - OpenCLContext::Ptr OpenCLContext::instance_ = {}; OpenCLContext::OpenCLHandle::OpenCLHandle() @@ -563,7 +561,7 @@ OpenCLContext::OpenCLContext() : context_(nullptr), queue_(nullptr) { cl_context_properties context_properties[] = { CL_CONTEXT_PLATFORM, - static_cast(first_platform_id), 0}; + reinterpret_cast(first_platform_id), 0}; context_ = clCreateContextFromType(context_properties, CL_DEVICE_TYPE_GPU, nullptr, nullptr, &err_num);