mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
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:
parent
e6b87febe5
commit
dc4f712f74
6 changed files with 72 additions and 54 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue