mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: fix blend clear regression
Field selector are very dangerous to use. Fix #764
This commit is contained in:
parent
0e3491bd58
commit
c32f1dfc23
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue