D3D: Save some video RAM by turning off the "default" Z buffer (we create our own). probably doesn't matter on most video cards..

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4277 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2009-09-15 19:53:22 +00:00
parent e6b87febe5
commit dc4f712f74
6 changed files with 72 additions and 54 deletions

View File

@ -146,13 +146,10 @@ void SetDepthMode(const BPCmd &bp)
else
{
D3D::SetRenderState(D3DRS_ZENABLE, FALSE);
D3D::SetRenderState(D3DRS_ZWRITEENABLE, FALSE);
D3D::SetRenderState(D3DRS_ZWRITEENABLE, FALSE); // ??
}
//if (!bpmem.zmode.updateenable)
// Renderer::SetRenderMode(Renderer::RM_Normal);
}
void SetBlendMode(const BPCmd &bp)
{
if (bp.changes & 1)
@ -164,7 +161,8 @@ void SetBlendMode(const BPCmd &bp)
if (bp.changes & 0x700)
D3D::SetRenderState(D3DRS_SRCBLEND, src);
if (bp.changes & 0xE0) {
if (bp.changes & 0xE0)
{
if (!bpmem.blendmode.subtract)
{
D3D::SetRenderState(D3DRS_DESTBLEND, dst);