summaryrefslogtreecommitdiff
path: root/src/helpers/Drm.cpp
diff options
context:
space:
mode:
authorUjinT34 <41110182+UjinT34@users.noreply.github.com>2026-04-16 21:19:25 +0300
committerGitHub <noreply@github.com>2026-04-16 19:19:25 +0100
commit66ea2e2c9ed4e9257521e6706fbd21feb7e3cc5b (patch)
tree6c0c9842245917e9828874263cd11d6f556a0a48 /src/helpers/Drm.cpp
parent4cce7f60a9c8772d18ffb43cb74aa227ab4b3bc4 (diff)
renderer: Various CM fixes, part 8 of refactors (#13860)
Part 8 of Ujin's refactors.
Diffstat (limited to 'src/helpers/Drm.cpp')
-rw-r--r--src/helpers/Drm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/Drm.cpp b/src/helpers/Drm.cpp
index f91c5692..4f3119f8 100644
--- a/src/helpers/Drm.cpp
+++ b/src/helpers/Drm.cpp
@@ -32,7 +32,7 @@ std::optional<dev_t> DRM::devIDFromFD(int fd) {
}
bool DRM::sameGpu(int fd1, int fd2) {
- if (fd1 >= 0 && fd1 == fd2)
+ if (fd1 < 0 || fd2 < 0 || fd1 == fd2)
return true;
static std::mutex cacheMutex;