Fix a resource leak in D3DDevice_Swap

This commit is contained in:
Silent 2020-10-30 23:01:38 +01:00
parent 65d5abc813
commit 2875342b5c
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
1 changed files with 1 additions and 0 deletions

View File

@ -5356,6 +5356,7 @@ xbox::dword_xt WINAPI xbox::EMUPATCH(D3DDevice_Swap)
/*Z=*/g_bHasDepth ? 1.0f : 0.0f,
/*Stencil=*/0);
g_pD3DDevice->SetRenderTarget(0, pExistingRenderTarget);
pExistingRenderTarget->Release();
}
// TODO: Implement a hot-key to change the filter?