mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[d3d9] Avoid prematurely deleting swapchain backbuffers if they are still reffed on reset
This commit is contained in:
parent
837861ffdd
commit
3f2b582d5f
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user