mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
OpenCL: use the newest supported OpenCL version
This commit is contained in:
@@ -43,7 +43,8 @@ static const char* openCLHandleData(OpenCLData* data, FFOpenCLResult* result)
|
||||
if (data->ffclGetPlatformInfo(platforms[iplat], CL_PLATFORM_VERSION, sizeof(buffer), buffer, NULL) != CL_SUCCESS)
|
||||
return "clGetPlatformInfo() failed";
|
||||
|
||||
if (iplat == 0)
|
||||
// Use the newest supported OpenCL version
|
||||
if (ffStrbufCompS(&result->version, buffer) < 0)
|
||||
{
|
||||
const char* versionPretty = buffer;
|
||||
if(ffStrStartsWithIgnCase(buffer, "OpenCL "))
|
||||
|
||||
Reference in New Issue
Block a user