aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-08-07 18:54:45 +0200
committerVaxry <[email protected]>2024-08-07 18:54:45 +0200
commit2d552fbaa25f1457c3819521a2750dd30820271b (patch)
treea2c12f536ec90cb0afd268327f569bacb9c86b63 /src/render
parentea728315410e220d73a993f17c83ae9dc9be9015 (diff)
downloadHyprland-2d552fbaa25f1457c3819521a2750dd30820271b.tar.gz
Hyprland-2d552fbaa25f1457c3819521a2750dd30820271b.zip
renderer: fixup nvidia driver version checks
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Renderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 8c29bef4..7b29eb77 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -2737,7 +2737,7 @@ SExplicitSyncSettings CHyprRenderer::getExplicitSyncSettings() {
// check nvidia version. Explicit KMS is supported in >=560
// in the case of an error, driverMajor will stay 0 and explicit KMS will be disabled
- int driverMajor = 0;
+ static int driverMajor = 0;
static bool once = true;
if (once) {