diff options
Diffstat (limited to 'src/helpers/Drm.cpp')
| -rw-r--r-- | src/helpers/Drm.cpp | 2 |
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; |
