gsdx-ogl: only set a cst blend factor when Ad is used

Fix GT4 and potentially FFX
This commit is contained in:
Gregory Hainaut 2015-06-07 16:10:59 +02:00
parent 5daf7aa98f
commit c3c29945b2
1 changed files with 5 additions and 3 deletions

View File

@ -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();
if (ps_sel.dfmt == 1) {
// 24 bits no alpha channel so use 1.0f fix factor as equivalent
ALPHA.C = 2;
afix = 1.0f;
if (ALPHA.C == 1) {
// 24 bits no alpha channel so use 1.0f fix factor as equivalent
ALPHA.C = 2;
afix = 1.0f;
}
// Disable writing of the alpha channel
om_csel.wa = 0;
}