[primitives,opencl] fix deprecations

This commit is contained in:
akallabeth 2024-07-22 14:33:32 +02:00
parent 35d1182ff5
commit 09a6655823
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -321,7 +321,11 @@ static BOOL primitives_init_opencl_context(primitives_opencl_context* cl)
continue;
}
#if defined(CL_VERSION_2_0)
cl->commandQueue = clCreateCommandQueueWithProperties(context, device_id, NULL, &ret);
#else
cl->commandQueue = clCreateCommandQueue(context, device_id, 0, &ret);
#endif
if (ret != CL_SUCCESS)
{
WLog_ERR(TAG, "openCL: unable to create command queue");