Skip to content

Commit

Permalink
Исправлена реинициализация при смене дисплея при использовании Direct…
Browse files Browse the repository at this point in the history
…3D 11.
  • Loading branch information
Aleksoid1978 committed Dec 23, 2024
1 parent b9576be commit 72c47a5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Source/DX11VideoProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,6 @@ HRESULT CDX11VideoProcessor::Init(const HWND hwnd, const bool displayHdrChanged,
}
m_nCurrentAdapter = currentAdapter;

if (m_bDecoderDevice && m_pDXGISwapChain1) {
return S_OK;
}

ReleaseSwapChain();
m_pDXGIFactory2.Release();
ReleaseDevice();
Expand Down Expand Up @@ -1346,6 +1342,7 @@ HRESULT CDX11VideoProcessor::SetDevice(ID3D11Device *pDevice, ID3D11DeviceContex

m_pFilter->OnDisplayModeChange();
UpdateStatsStatic();
UpdateStatsByWindow();
UpdateStatsByDisplay();

return hr;
Expand Down

0 comments on commit 72c47a5

Please sign in to comment.