More windows fixes

This commit is contained in:
FlightlessMango 2023-04-09 19:06:46 +02:00
parent f74fc5779f
commit b8bd09d638
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,6 @@ vklayer_files = files(
'vulkan.cpp',
'blacklist.cpp',
'file_utils.cpp',
'amdgpu.cpp',
'intel.cpp'
)
opengl_files = []
@ -73,6 +72,7 @@ if is_unixy
'battery.cpp',
'control.cpp',
'gamepad.cpp',
'amdgpu.cpp'
)
opengl_files = files(

View File

@ -118,10 +118,10 @@ void update_hw_info(const struct overlay_params& params, uint32_t vendorID)
if (params.enabled[OVERLAY_PARAM_ENABLED_gpu_stats] || logger->is_active()) {
if (vendorID == 0x1002)
getAmdGpuInfo();
#ifdef __linux__
if (gpu_metrics_exists)
amdgpu_get_metrics();
#endif
if (vendorID == 0x10de)
getNvidiaGpuInfo(params);