mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: only set a cst blend factor when Ad is used
Fix GT4 and potentially FFX
This commit is contained in:
parent
5daf7aa98f
commit
c3c29945b2
|
@ -289,9 +289,11 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
|
||||||
|
|
||||||
om_csel.wrgba = ~GSVector4i::load((int)context->FRAME.FBMSK).eq8(GSVector4i::xffffffff()).mask();
|
om_csel.wrgba = ~GSVector4i::load((int)context->FRAME.FBMSK).eq8(GSVector4i::xffffffff()).mask();
|
||||||
if (ps_sel.dfmt == 1) {
|
if (ps_sel.dfmt == 1) {
|
||||||
// 24 bits no alpha channel so use 1.0f fix factor as equivalent
|
if (ALPHA.C == 1) {
|
||||||
ALPHA.C = 2;
|
// 24 bits no alpha channel so use 1.0f fix factor as equivalent
|
||||||
afix = 1.0f;
|
ALPHA.C = 2;
|
||||||
|
afix = 1.0f;
|
||||||
|
}
|
||||||
// Disable writing of the alpha channel
|
// Disable writing of the alpha channel
|
||||||
om_csel.wa = 0;
|
om_csel.wa = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue