mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 08:39:13 +01:00
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:
parent
020ff8c62b
commit
ef3a40c644
@ -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());
|
||||
if(WindowResized)
|
||||
{
|
||||
SetupDeviceObjects();
|
||||
}
|
||||
else
|
||||
{
|
||||
FBManager.Destroy();
|
||||
FBManager.Create();
|
||||
}
|
||||
D3D::dev->SetRenderTarget(0, FBManager.GetEFBColorRTSurface());
|
||||
D3D::dev->SetDepthStencilSurface(FBManager.GetEFBDepthRTSurface());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user