mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Fix EGLFS state restoration after Vulkan rendering
This commit is contained in:
1 parent
023b6b2772
commit
0e2d5bf441
2 files changed
+42
-5
No files matched your search
@@ -149,9 +149,15 @@ int openHook(const char *funcname, const char *pathname, int flags, va_list va)
|
||||
}
|
||||
}
|
||||
|
||||
// Insert the FD into the table
|
||||
g_SdlDrmMasterFds[freeFdIndex] = fd;
|
||||
g_SdlDrmMasterFdCount++;
|
||||
if (fd >= 0) {
|
||||
// Start with DRM master on the new FD
|
||||
drmSetMaster(fd);
|
||||
|
||||
// Insert the FD into the table
|
||||
g_SdlDrmMasterFds[freeFdIndex] = fd;
|
||||
g_SdlDrmMasterFdCount++;
|
||||
}
|
||||
|
||||
SDL_AtomicUnlock(&g_FdTableLock);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user