Check if nvml is avaible on intel vendorID

pull/20/head
FlightlessMango 4 years ago
parent af17b20bd7
commit ac719b2ffd

@ -47,6 +47,7 @@
#include "cpu_gpu.h"
#include "logging.h"
#include "keybinds.h"
#include "loaders/loader_nvml.h"
bool open = false, displayHud = true;
string gpuString;
@ -886,6 +887,12 @@ static void snapshot_swapchain_frame(struct swapchain_data *data)
instance_data->params.height += 24 / 2;
}
}
if (device_data->properties.vendorID == 0x8086){
libnvml_loader nvml("libnvidia-ml.so.1");
if (nvml.IsLoaded())
device_data->properties.vendorID = 0x10de;
}
sysInfoFetched = true;
}

Loading…
Cancel
Save