Fix a resource leak in D3DDevice_Swap
This commit is contained in:
parent
65d5abc813
commit
2875342b5c
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue