mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
GPU: remove special handling for WSL
WSL2 is VM, which can only provide virtual GPUs, like other VMs do. We should honor it. As of WSL 1.0, it prints `Microsoft Corporation Basic Render Driver`
This commit is contained in:
@@ -44,12 +44,6 @@ void ffPrintGPU(FFinstance* instance)
|
||||
if(ffPrintFromCache(instance, FF_GPU_MODULE_NAME, &instance->config.gpu, FF_GPU_NUM_FORMAT_ARGS))
|
||||
return;
|
||||
|
||||
if(ffStrbufCompS(&ffDetectHost()->productName, FF_HOST_PRODUCT_NAME_WSL) == 0)
|
||||
{
|
||||
ffPrintError(instance, FF_GPU_MODULE_NAME, 0, &instance->config.gpu, "WSL doesn't expose senseful GPU names");
|
||||
return;
|
||||
}
|
||||
|
||||
const FFlist* gpus = ffDetectGPU(instance);
|
||||
|
||||
if(gpus->length == 0)
|
||||
|
||||
Reference in New Issue
Block a user