Sorry for the last one , forget to update z clearing to support the format change.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4354 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Rodolfo Osvaldo Bogado 2009-10-02 15:33:07 +00:00
parent 9d67518f71
commit 025d68ba11
2 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ void ClearScreen(const BPCmd &bp, const EFBRectangle &rc)
clearZ = (float)(bpmem.clearZValue & 0xFFFFFF) / float(0xFFFFFF);
if (clearZ > 1.0f) clearZ = 1.0f;
if (clearZ < 0.0f) clearZ = 0.0f;
clearflags |= D3DCLEAR_ZBUFFER | D3DCLEAR_STENCIL;
clearflags |= D3DCLEAR_ZBUFFER;//removed stencil
}
D3D::dev->Clear(0, NULL, clearflags, col, clearZ, 0);

View File

@ -148,7 +148,7 @@ bool Renderer::Init()
D3D::dev->SetRenderTarget(0, FBManager::GetEFBColorRTSurface());
D3D::dev->SetDepthStencilSurface(FBManager::GetEFBDepthRTSurface());
D3D::dev->Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER | D3DCLEAR_STENCIL, 0x0, 1.0f, 0);
D3D::dev->Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER , 0x0, 1.0f, 0);//| D3DCLEAR_STENCIL
D3D::BeginFrame();
return true;