aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-07-21 16:24:49 +0200
committerdec05eba <dec05eba@protonmail.com>2024-07-21 16:24:49 +0200
commit8e608662bf355d0a02e5363164fa62a5b194cc76 (patch)
treea7809e4ff8845a733354d67d362185cdf284b86a /src/main.cpp
parent1ba797298e828c2eac6f8d983f34ee854b619eab (diff)
Poop
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 6 insertions, 4 deletions
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 "";
}