mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-11-04 06:00:23 +00:00
overlay: init_gpu: bring back checkNvidia
This commit is contained in:
parent
ddfc32211f
commit
7ea1f33fa1
@ -700,6 +700,11 @@ void init_gpu_stats(uint32_t& vendorID, uint32_t reported_deviceID, overlay_para
|
||||
}
|
||||
|
||||
#ifdef __linux__
|
||||
// NVIDIA or Intel but maybe has Optimus
|
||||
if (vendorID == 0x8086 || vendorID == 0x10de)
|
||||
if(checkNvidia(pci_dev))
|
||||
vendorID = 0x10de;
|
||||
|
||||
string path;
|
||||
string drm = "/sys/class/drm/";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user