diff --git a/src/framework/cl/cl_image.h b/src/framework/cl/cl_image.h index 6e7a229ae4b6d42291be7df43eb1573f94a9092c..1c5da6146d484e9aaa712da019d5573d116fe0e5 100644 --- a/src/framework/cl/cl_image.h +++ b/src/framework/cl/cl_image.h @@ -197,7 +197,7 @@ class CLImage { cl_int err; cl_image_ = clCreateImage2D( context, // cl_context context - CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, // cl_mem_flags flags + CL_MEM_READ_WRITE | (imageData ? CL_MEM_COPY_HOST_PTR : 0), // cl_mem_flags flags &cf, // const cl_image_format *image_format width, // size_t image_width height, // size_t image_height