File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -675,6 +675,11 @@ void CDX11VideoProcessor::ReleaseDevice()
675675 m_Alignment.cformat = {};
676676 m_Alignment.cx = {};
677677
678+ m_pVertexBuffer.Release ();
679+ m_pResizeShaderConstantBuffer.Release ();
680+ m_pHalfOUtoInterlaceConstantBuffer.Release ();
681+ m_pFinalPassConstantBuffer.Release ();
682+
678683 if (m_pDeviceContext) {
679684 // need ClearState() (see ReleaseVP()) and Flush() for ID3D11DeviceContext when using DXGI_SWAP_EFFECT_DISCARD in Windows 8/8.1
680685 m_pDeviceContext->Flush ();
@@ -694,11 +699,6 @@ void CDX11VideoProcessor::ReleaseDevice()
694699 }
695700#endif
696701
697- m_pVertexBuffer.Release ();
698- m_pResizeShaderConstantBuffer.Release ();
699- m_pHalfOUtoInterlaceConstantBuffer.Release ();
700- m_pFinalPassConstantBuffer.Release ();
701-
702702 m_pDevice.Release ();
703703}
704704
You can’t perform that action at this time.
0 commit comments