Unify handling of DRM devices between DRM and VAAPI

SDL may not be able to give us a DRM FD for Vulkan windows.
This commit is contained in:
Cameron Gutman committed 2024-09-21 20:46:11 -05:00
1 parent 9cf305865b
commit 6f39d120cb
5 files changed
+147 -75

No files matched your search

@@ -86,6 +86,7 @@ private:
AVHWDeviceType m_HwDeviceType;
AVBufferRef* m_HwContext;
int m_DrmFd;
bool m_DrmIsMaster;
bool m_SdlOwnsDrmFd;
bool m_SupportsDirectRendering;
int m_VideoFormat;