Skip to content

Commit

Permalink
При использовании VP иногда могли получить черный экран при HDR Passt…
Browse files Browse the repository at this point in the history
…hrough, по крайней мере на Nvidia.
  • Loading branch information
Aleksoid1978 committed May 23, 2024
1 parent 67d4c9f commit 7775461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/DX11VideoProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2892,8 +2892,8 @@ HRESULT CDX11VideoProcessor::Process(ID3D11Texture2D* pRenderTarget, const CRect
if (!(m_iSwapEffect == SWAPEFFECT_Discard && (m_VendorId == PCIV_AMDATI || m_VendorId == PCIV_INTEL))) {
const bool bNeedShaderTransform =
(m_TexConvertOutput.desc.Width != dstRect.Width() || m_TexConvertOutput.desc.Height != dstRect.Height() || m_bFlip
|| dstRect.right > m_windowRect.right || dstRect.bottom > m_windowRect.bottom);

|| dstRect.right > m_windowRect.right || dstRect.bottom > m_windowRect.bottom)
|| (m_bHdrPassthroughSupport && m_bHdrPassthrough); // At least on Nvidia we can sometimes get the "D3D11: Removing Device" error here when HDR Passthrough.
if (!bNeedShaderTransform && !numSteps) {
m_bVPScalingUseShaders = false;
hr = D3D11VPPass(pRenderTarget, rSrc, dstRect, second);
Expand Down

0 comments on commit 7775461

Please sign in to comment.