1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[d3d9] Avoid prematurely deleting swapchain backbuffers if they are still reffed on reset

This commit is contained in:
Joshua Ashton 2020-04-19 00:59:02 +01:00
parent 837861ffdd
commit 3f2b582d5f

View File

@ -43,8 +43,6 @@ namespace dxvk {
else if (m_container != nullptr && !swapchain) {
// Container must be a swapchain if it isn't a base texture.
static_cast<D3D9SwapChainEx*>(m_container)->AddRefPrivate();
return;
}
D3D9SurfaceBase::AddRefPrivate();
@ -63,8 +61,6 @@ namespace dxvk {
else if (m_container != nullptr && !swapchain) {
// Container must be a swapchain if it isn't a base texture.
static_cast<D3D9SwapChainEx*>(m_container)->ReleasePrivate();
return;
}
D3D9SurfaceBase::ReleasePrivate();