mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-04 13:24:34 +01:00
gsdx dx/gl: fix potential bug in alpha test handling
Depth test must remain disabled if write were masked. Bug was detected on ICO (sea/sky) but the previous commit removes the wrong ATE draw call.
This commit is contained in:
1 parent
6966e08306
commit
b91bd3ea01
2 files changed
+4
-4
No files matched your search
@@ -606,10 +606,10 @@ void GSRendererDX::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sourc
|
||||
}
|
||||
|
||||
if (ate_RGBA_then_Z) {
|
||||
z = true;
|
||||
z = !m_context->ZBUF.ZMSK;
|
||||
r = g = b = a = false;
|
||||
} else if (ate_RGB_then_ZA) {
|
||||
z = true;
|
||||
z = !m_context->ZBUF.ZMSK;
|
||||
a = !!(m_context->FRAME.FBMSK & 0xFF000000);
|
||||
r = g = b = false;
|
||||
}
|
||||
|
||||
@@ -1460,10 +1460,10 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
|
||||
}
|
||||
|
||||
if (ate_RGBA_then_Z) {
|
||||
z = true;
|
||||
z = !m_context->ZBUF.ZMSK;
|
||||
r = g = b = a = false;
|
||||
} else if (ate_RGB_then_ZA) {
|
||||
z = true;
|
||||
z = !m_context->ZBUF.ZMSK;
|
||||
a = !!(m_context->FRAME.FBMSK & 0xFF000000);
|
||||
r = g = b = false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user