From 3f2b582d5f071d8f29f66f33ed7e22e324ba1f8e Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 19 Apr 2020 00:59:02 +0100 Subject: [PATCH] [d3d9] Avoid prematurely deleting swapchain backbuffers if they are still reffed on reset --- src/d3d9/d3d9_surface.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/d3d9/d3d9_surface.cpp b/src/d3d9/d3d9_surface.cpp index b36c72036..46ac75ac9 100644 --- a/src/d3d9/d3d9_surface.cpp +++ b/src/d3d9/d3d9_surface.cpp @@ -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(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(m_container)->ReleasePrivate(); - - return; } D3D9SurfaceBase::ReleasePrivate();