gsdx-ogl: fix blend clear regression

Field selector are very dangerous to use.

Fix #764
This commit is contained in:
Gregory Hainaut 2015-08-15 20:05:09 +02:00
parent 0e3491bd58
commit c32f1dfc23
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ bool GSRendererOGL::EmulateBlending(GSDeviceOGL::PSSelector& ps_sel, bool DATE_G
// No need to flush for every primitive
require_barrier |= !(blend_flag & BLEND_NO_BAR) && !accumulation_blend;
} else {
ps_sel.clr1 = (blend_flag & BLEND_C_CLR);
ps_sel.clr1 = !!(blend_flag & BLEND_C_CLR);
if (ps_sel.dfmt == 1 && ALPHA.C == 1) {
// 24 bits doesn't have an alpha channel so use 1.0f fix factor as equivalent
int hacked_blend_index = blend_index + 3; // +3 <=> +1 on C