small fix for the windows resizing problem introduced in my last commit, still much to do but working to fix the remaining problems.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5219 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Rodolfo Osvaldo Bogado 2010-03-22 00:21:39 +00:00
parent 020ff8c62b
commit ef3a40c644
1 changed files with 9 additions and 1 deletions

View File

@ -1280,7 +1280,15 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight)
yScale *= SupersampleCoeficient;
D3D::dev->SetRenderTarget(0, D3D::GetBackBufferSurface());
D3D::dev->SetDepthStencilSurface(D3D::GetBackBufferDepthSurface());
SetupDeviceObjects();
if(WindowResized)
{
SetupDeviceObjects();
}
else
{
FBManager.Destroy();
FBManager.Create();
}
D3D::dev->SetRenderTarget(0, FBManager.GetEFBColorRTSurface());
D3D::dev->SetDepthStencilSurface(FBManager.GetEFBDepthRTSurface());
}