From 66ea2e2c9ed4e9257521e6706fbd21feb7e3cc5b Mon Sep 17 00:00:00 2001 From: UjinT34 <41110182+UjinT34@users.noreply.github.com> Date: Thu, 16 Apr 2026 21:19:25 +0300 Subject: renderer: Various CM fixes, part 8 of refactors (#13860) Part 8 of Ujin's refactors. --- src/helpers/Drm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helpers/Drm.cpp') 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 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; -- cgit v1.2.3