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(); 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;
} }