From 8e608662bf355d0a02e5363164fa62a5b194cc76 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 21 Jul 2024 16:24:49 +0200 Subject: Poop --- src/main.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index f02e0c5..b523244 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -261,13 +261,14 @@ struct SystemInfo { }; enum class GpuVendor { + UNKNOWN, AMD, INTEL, NVIDIA }; struct GpuInfo { - GpuVendor vendor; + GpuVendor vendor = GpuVendor::UNKNOWN; }; struct GsrInfo { @@ -3980,9 +3981,10 @@ static void init_shortcuts_callback(bool success, void *userdata) { static const char* gpu_vendor_to_name(GpuVendor vendor) { switch(vendor) { - case GpuVendor::AMD: return "AMD"; - case GpuVendor::INTEL: return "Intel"; - case GpuVendor::NVIDIA: return "NVIDIA"; + case GpuVendor::UNKNOWN: return "Unknown"; + case GpuVendor::AMD: return "AMD"; + case GpuVendor::INTEL: return "Intel"; + case GpuVendor::NVIDIA: return "NVIDIA"; } return ""; } -- cgit v1.2.3