diff --git a/source/adapters/opencl/memory.cpp b/source/adapters/opencl/memory.cpp index 5de850f1e2..2397e2b5f9 100644 --- a/source/adapters/opencl/memory.cpp +++ b/source/adapters/opencl/memory.cpp @@ -232,11 +232,11 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemBufferCreate( clCreateBufferWithPropertiesINTEL_fn FuncPtr = nullptr; cl_context CLContext = cl_adapter::cast(hContext); // First we need to look up the function pointer - UR_RETURN_ON_FAILURE( + RetErr = cl_ext::getExtFuncFromContext( CLContext, cl_ext::ExtFuncPtrCache->clCreateBufferWithPropertiesINTELCache, - cl_ext::CreateBufferWithPropertiesName, &FuncPtr)); + cl_ext::CreateBufferWithPropertiesName, &FuncPtr); if (FuncPtr) { std::vector PropertiesIntel; auto Prop = static_cast(pProperties->pNext);