mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[host] made DXGI ReInitialization more robust on mode changes
DXGI doesn't like to restart too fast, com exceptions are logged and the duplication device fails to create with an E_ACCESS_DENIED error. Adding a 200ms sleep between teardown and re-init resolves this issue.
This commit is contained in:
@@ -42,6 +42,8 @@ namespace Capture
|
||||
bool GrabFrame(struct FrameInfo & frame);
|
||||
|
||||
private:
|
||||
bool ReInitialize();
|
||||
|
||||
bool m_initialized;
|
||||
MTMemcpy m_memcpy;
|
||||
unsigned int m_width;
|
||||
|
Reference in New Issue
Block a user