mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-11 01:48:09 +00:00
[idd] driver: re-plug the monitor if the heap test failed
This commit is contained in:
@@ -49,10 +49,19 @@ void CIndirectMonitorContext::AssignSwapChain(IDDCX_SWAPCHAIN swapChain, LUID re
|
||||
|
||||
UINT64 alignSize = CPlatformInfo::GetPageSize();
|
||||
m_dx12Device = std::make_shared<CD3D12Device>(renderAdapter);
|
||||
if (!m_dx12Device->Init(m_devContext->GetIVSHMEM(), alignSize))
|
||||
switch (m_dx12Device->Init(m_devContext->GetIVSHMEM(), alignSize))
|
||||
{
|
||||
WdfObjectDelete(swapChain);
|
||||
return;
|
||||
case CD3D12Device::SUCCESS:
|
||||
break;
|
||||
|
||||
case CD3D12Device::FAILURE:
|
||||
WdfObjectDelete(swapChain);
|
||||
return;
|
||||
|
||||
case CD3D12Device::RETRY:
|
||||
WdfObjectDelete(swapChain);
|
||||
m_devContext->ReplugMonitor();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_devContext->SetupLGMP(alignSize))
|
||||
|
Reference in New Issue
Block a user